UNPKG

koval-ui

Version:

React components collection with minimalistic design. Supports theming, layout, and input validation.

1 lines 1.18 kB
{"version":3,"file":"BlockQuote.cjs","sources":["../../../../src/lib/Text/BlockQuote.tsx"],"sourcesContent":["import type {ReactNode} from 'react';\nimport {forwardRef} 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 };\n\nexport const BlockQuote = forwardRef<HTMLQuoteElement, Props>(\n ({children, className, ...nativeProps}, ref) => {\n return (\n <blockquote\n {...nativeProps}\n className={classNames(classes.blockquote, className)}\n ref={ref}>\n {children}\n </blockquote>\n );\n }\n);\n\nBlockQuote.displayName = 'BlockQuote';\n"],"names":["BlockQuote","forwardRef","children","className","nativeProps","ref","jsx","classNames","classes"],"mappings":"gNAaaA,EAAaC,EAAA,WACtB,CAAC,CAAC,SAAAC,EAAU,UAAAC,EAAW,GAAGC,CAAA,EAAcC,IAEhCC,EAAA,IAAC,aAAA,CACI,GAAGF,EACJ,UAAWG,EAAWC,UAAQ,WAAYL,CAAS,EACnD,IAAAE,EACC,SAAAH,CAAA,CACL,CAGZ,EAEAF,EAAW,YAAc"}