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-10.23.0.pre.cachetest app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.21.0.pre.alpha.lightbox.2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.21.0.pre.alpha.lightbox app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.21.0.pre.alpha.rg1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.21.0.pre.alpha.jg1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.21.0.pre.alpha.na1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.21.0.pre.alpha.jd1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.20.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.19.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.19.0.pre.lightbox app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.18.2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.19.0.pre.popover.alpha1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.18.1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.18.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.17.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.16.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.15.1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.15.1.pre.alpha.rubocop.deps app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.15.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.14.1.pre.alpha2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx