koval-ui
Version:
React components collection with minimalistic design. Supports theming, layout, and input validation.
1 lines • 1.17 kB
Source Map (JSON)
{"version":3,"file":"Preformatted.cjs","sources":["../../../../src/lib/Text/Preformatted.tsx"],"sourcesContent":["import {forwardRef, type HTMLAttributes, type ReactNode} from 'react';\nimport classNames from 'classnames';\n\nimport type {DataAttributes, LibraryProps} from '@/internal/LibraryAPI';\n\nimport classes from './Text.module.css';\n\nexport type Props = DataAttributes &\n LibraryProps & {\n children?: ReactNode;\n contentEditable?: HTMLAttributes<HTMLPreElement>['contentEditable'];\n };\n\nexport const Pre = forwardRef<HTMLPreElement, Props>(\n ({children, className, ...nativeProps}, ref) => {\n return (\n <pre {...nativeProps} className={classNames(classes.preformatted, className)} ref={ref}>\n {children}\n </pre>\n );\n }\n);\n\nPre.displayName = 'Pre';\n"],"names":["Pre","forwardRef","children","className","nativeProps","ref","jsx","classNames","classes"],"mappings":"gNAaaA,EAAMC,EAAA,WACf,CAAC,CAAC,SAAAC,EAAU,UAAAC,EAAW,GAAGC,CAAA,EAAcC,IAEhCC,EAAA,IAAC,MAAK,CAAA,GAAGF,EAAa,UAAWG,EAAWC,EAAA,QAAQ,aAAcL,CAAS,EAAG,IAAAE,EACzE,SAAAH,CACL,CAAA,CAGZ,EAEAF,EAAI,YAAc"}