Sha256: d6a1a8f2611f1eb9bada694656ff25f21271b23594598c23d1e8e8d409ebff0d
Contents?: true
Size: 883 Bytes
Versions: 352
Compression:
Stored size: 883 Bytes
Contents
import React from 'react' import classnames from 'classnames' import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props' import { globalProps } from '../utilities/globalProps' type FormGroupProps = { aria?: {[key: string]: string}, children?: Node, className?: string, data?: object, fullWidth?: boolean, id?: string, } const FormGroup = (props: FormGroupProps) => { const { aria = {}, className, data = {}, fullWidth = false, id, children, } = props const ariaProps = buildAriaProps(aria) const dataProps = buildDataProps(data) const classes = classnames(buildCss('pb_form_group_kit', { full: fullWidth }), globalProps(props), className) return ( <div {...ariaProps} {...dataProps} className={classes} id={id} > {children} </div> ) } export default FormGroup
Version data entries
352 entries across 352 versions & 1 rubygems