Sha256: f23f835203e37f50a0197ce639d348688701f84f3a863b57658d1e58e14ab7d1

Contents?: true

Size: 544 Bytes

Versions: 120

Compression:

Stored size: 544 Bytes

Contents

/* @flow */

import React from 'react'
import classnames from 'classnames'
import { buildCss } from '../../utilities/props'
import { globalProps } from '../../utilities/globalProps.js'

// Body component
const DialogBody = (props: DialogBodyProps) => {
  const { children, padding = 'sm', className } = props
  const bodyCSS = buildCss('dialog_body')
  const bodySpacing = globalProps(props, { padding })

  return (
    <div className={classnames(bodyCSS, bodySpacing, className)}>
      {children}
    </div>
  )
}

export default DialogBody

Version data entries

120 entries across 120 versions & 1 rubygems

Version Path
playbook_ui-9.2.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.1.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.0.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.3.0.alpha.select.pre.margin app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.3.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.2.1.pre.alpha5 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.2.1.pre.alpha4 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.2.1.alpha.iconacc app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.2.1.pre.alpha3 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.2.1.pre.alpha2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.3.0.deps2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.3.0.pre.alpha1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.2.1.pre.alpha1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.2.1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.4.0.alpha.dependencies.2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.4.0.alpha.dependencies.1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.2.0.pre.alpha4 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.2.0.pre.alpha3 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.2.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-8.1.0.pre.alpha1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx