koval-ui
Version:
React components collection with minimalistic design. Supports theming, layout, and input validation.
1 lines • 1.36 kB
Source Map (JSON)
{"version":3,"file":"Page.cjs","sources":["../../../../src/lib/Layout/Page.tsx"],"sourcesContent":["import {forwardRef} from 'react';\nimport classNames from 'classnames';\n\nimport type {Props as GridProps} from './Grid.tsx';\nimport {Grid} from './Grid.tsx';\nimport classes from './Layout.module.css';\n\nexport type Props = GridProps;\n\nexport const Page = forwardRef<HTMLDivElement, Props>(\n (\n {width = 'fluid', className, as = 'div', children, gap = 0, base = 12, ...nativeProps},\n ref\n ) => {\n return (\n <Grid\n {...nativeProps}\n width={width}\n ref={ref}\n className={classNames(classes.page, className)}\n as={as}\n gap={gap}\n base={base}>\n {children}\n </Grid>\n );\n }\n);\n\nPage.displayName = 'Page';\n"],"names":["Page","forwardRef","width","className","as","children","gap","base","nativeProps","ref","jsx","Grid","classNames","classes"],"mappings":"0OASaA,EAAOC,EAAA,WAChB,CACI,CAAC,MAAAC,EAAQ,QAAS,UAAAC,EAAW,GAAAC,EAAK,MAAO,SAAAC,EAAU,IAAAC,EAAM,EAAG,KAAAC,EAAO,GAAI,GAAGC,CAAA,EAC1EC,IAGIC,EAAA,IAACC,EAAA,KAAA,CACI,GAAGH,EACJ,MAAAN,EACA,IAAAO,EACA,UAAWG,EAAWC,UAAQ,KAAMV,CAAS,EAC7C,GAAAC,EACA,IAAAE,EACA,KAAAC,EACC,SAAAF,CAAA,CACL,CAGZ,EAEAL,EAAK,YAAc"}