UNPKG

eldav1d-marvel-ui

Version:

UI library for (and from) Playing with Marvel API

1 lines 1.02 kB
{"version":3,"file":"FormGroupContainer.cjs","sources":["../../../../lib/molecules/FormGroupContainer/FormGroupContainer.tsx"],"sourcesContent":["import { getParentSelectors } from '@/utils/helpers';\n\nexport interface IFormGroupContainerProps {\n title: string;\n /**\n * @property {string}\n * Additional class name for <fieldset>\n */\n classNameFieldset?: string;\n children: React.ReactNode;\n}\n\nconst FormGroupContainer = ({ classNameFieldset, title, children }: IFormGroupContainerProps) => {\n return (\n <fieldset className={getParentSelectors(classNameFieldset)}>\n <legend className='mb-1'>{title}</legend>\n {children}\n </fieldset>\n );\n};\n\nexport default FormGroupContainer;\n"],"names":["FormGroupContainer","classNameFieldset","title","children","_jsxs","getParentSelectors","_jsx"],"mappings":"4LAYMA,EAAqB,CAAC,CAAE,kBAAAC,EAAmB,MAAAC,EAAO,SAAAC,KAEpDC,EAAAA,iBAAU,UAAWC,EAAAA,mBAAmBJ,CAAiB,EACvD,SAAA,CAAAK,EAAAA,IAAA,SAAA,CAAQ,UAAU,gBAAQJ,CAAA,CAAK,EAC9BC,CAAQ,EAAA"}