Sha256: 314465a144deae53dcb60e964dbb1f508deafa550c7a2bba988155294671baea

Contents?: true

Size: 882 Bytes

Versions: 45

Compression:

Stored size: 882 Bytes

Contents

/* @flow */

import React from 'react'
import classnames from 'classnames'

import { buildCss } from '../../utilities/props'
import { globalProps } from '../../utilities/globalProps'

import Flex from '../../pb_flex/_flex'
import SectionSeparator from '../../pb_section_separator/_section_separator'

// Footer component
const DialogFooter = (props: DialogFooterProps) => {
  const {
    children,
    padding = 'sm',
    className,
    spacing = 'between',
    separator = false,
  } = props
  const footerCSS = buildCss('dialog_footer')
  const footerSpacing = globalProps(props, { padding })

  return (
    <>
      <If condition={separator}>
        <SectionSeparator />
      </If>
      <Flex
          className={classnames(footerCSS, footerSpacing, className)}
          spacing={spacing}
      >
        {children}
      </Flex>
    </>
  )
}

export default DialogFooter

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
playbook_ui-11.4.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.3.0.pre.alpha2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.3.0.pre.alpha1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.3.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.2.7 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.2.6 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.2.5 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.2.4 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.2.4.pre.alpha1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.2.3 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.2.2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.2.1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.2.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.1.2 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.1.2.pre.alpha1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.1.1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.1.1.pre.alpha1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.1.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.0.1 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx
playbook_ui-11.0.0 app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx