Sha256: 6eeb966383dc752dd2e506855c335a1e7704bcd6288229640e137786f82c6195
Contents?: true
Size: 690 Bytes
Versions: 228
Compression:
Stored size: 690 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) => { 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
228 entries across 228 versions & 1 rubygems