Sha256: cd693c8fbb96e45ebf1ecb157573158c9fd1dc407896daf91ae7aedaaa4f7519

Contents?: true

Size: 541 Bytes

Versions: 12

Compression:

Stored size: 541 Bytes

Contents

/* @flow */

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

// 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

12 entries across 12 versions & 1 rubygems

Version Path
playbook_ui-11.6.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-11.5.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-11.7.0.pre.alpha.pre.guagechart1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-11.6.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-11.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-11.6.0.pre.alpha.rubocopperf1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-11.6.1.pre.alpha.rubocop.pre.performance1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-11.5.0.pre.alpha.pre.rubocop app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-11.6.0.pre.alpha.momenttz1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-11.5.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-11.4.0.pre.alpha.rubytheme2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx
playbook_ui-11.4.0.pre.alpha.rubytheme1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx