UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

1 lines 1.48 kB
{"version":3,"file":"Blockquote.mjs","sources":["../../../../src/components/Blockquote/Blockquote.tsx"],"sourcesContent":["import type { ComponentProps, FC } from \"react\";\nimport { twMerge } from \"tailwind-merge\";\nimport { mergeDeep } from \"../../helpers/merge-deep\";\nimport { getTheme } from \"../../theme-store\";\nimport type { DeepPartial } from \"../../types\";\n\nexport interface FlowbiteBlockquoteTheme {\n root: FlowbiteBlockquoteRootTheme;\n}\n\nexport interface FlowbiteBlockquoteRootTheme {\n base: string;\n}\n\nexport interface BlockquoteProps extends ComponentProps<\"blockquote\"> {\n theme?: DeepPartial<FlowbiteBlockquoteTheme>;\n}\n\nexport const Blockquote: FC<BlockquoteProps> = ({ children, className, theme: customTheme = {}, ...props }) => {\n const theme = mergeDeep(getTheme().blockquote, customTheme);\n\n return (\n <blockquote className={twMerge(theme.root.base, className)} data-testid=\"flowbite-blockquote\" {...props}>\n {children}\n </blockquote>\n );\n};\n\nBlockquote.displayName = \"Blockquote\";\n"],"names":[],"mappings":";;;;;AAKY,MAAC,UAAU,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE,EAAE,GAAG,KAAK,EAAE,KAAK;AAC1F,EAAE,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAC9D,EAAE,uBAAuB,GAAG,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,aAAa,EAAE,qBAAqB,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AACzJ,EAAE;AACF,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}