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.2.1.alpha.sisensefix app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.2.1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.2.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.1.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.0.3.pre.alpha.walkthrough2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.0.3.pre.alpha.walkthrough app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.0.1.alpha.railscusticon app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.0.2.pre.alpha.pre.iconfix app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.0.1.alpha.rtflexfix app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.0.0.pre.alphafonts app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.0.1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-10.0.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.19.0.pre.alpha.pre.fonts2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.19.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.17.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx