Sha256: 8a5d5d1a60f1930fe742371367caa32495319000a0b71a20e3a2f3bba82ff0ba
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
import React from 'react' import classnames from 'classnames' import { buildCss } from '../../utilities/props' import { GlobalProps, globalProps } from '../../utilities/globalProps' import Flex from '../../pb_flex/_flex' import SectionSeparator from '../../pb_section_separator/_section_separator' type DialogFooterProps = { aria?: object, children: React.ReactChild[] | React.ReactChild | string, className?: string, data?: object, id?: string, padding?: string, paddingBottom?: string, paddingX?: string, separator?: boolean, spacing?: "none" | "between" | "around" | "evenly", } & GlobalProps // Footer component const DialogFooter = (props: DialogFooterProps) => { const { children, padding = "sm", paddingBottom = "sm", paddingX = "sm", className, spacing = "between", separator = false, } = props const footerCSS = buildCss("dialog_footer") const footerSpacing = globalProps(props, { padding, paddingBottom, paddingX }) return ( <> {separator && <SectionSeparator aria={{dd: 'ff'}} className="dd" data={{dd: 'ff'}} id="d" text="ss"/> } <Flex className={classnames(footerCSS, footerSpacing, className)} spacing={spacing} > {children} </Flex> </> ) } export default DialogFooter
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
playbook_ui-11.7.0.pre.alpha.table1 | app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.tsx |
playbook_ui-11.7.0 | app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.tsx |