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.6.1.pre.deps1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.6.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.5.0.alpha.rs.downgrade app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.5.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.4.0.alpha.sisense app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.4.0.alpha.user.kit.bug app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.4.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.3.1.pre.alpha2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.4.0.pre.alpha2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.4.0.pre.alpha1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.3.1.pre.alpha1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.3.0.alpha.inline3 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.3.0.pre.alpha.password.strength.2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.3.0.alpha.inline2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.3.0.alpha.inline1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.3.0.pre.alpha.password.strength.1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.3.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.2.2.pre.alpha.margin app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.2.2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.2.1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx