Sha256: 869b221439541da3da18cefa20ece838610eda5b46b6616c157afbcf4f0e11fe

Contents?: true

Size: 681 Bytes

Versions: 644

Compression:

Stored size: 681 Bytes

Contents

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

type DialogBodyProps = {
  children: React.ReactNode | React.ReactNode[] | string,
  padding?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl",
  className?: string
} 

// Body component
const DialogBody = (props: DialogBodyProps): React.ReactElement => {
  const { children, className } = props
  const bodyCSS = buildCss("dialog_body")
  const bodySpacing = globalProps(props)

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

export default DialogBody

Version data entries

644 entries across 644 versions & 1 rubygems

Version Path
playbook_ui-14.11.0.pre.rc.17 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.11.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.11.0.pre.rc.11 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.11.0.pre.rc.10 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5214 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5213 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5210 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5208 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5207 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.10.0.pre.alpha.play16825206 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5204 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx