UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

1 lines 1.07 kB
{"version":3,"file":"Flowbite.mjs","sources":["../../../../src/components/Flowbite/Flowbite.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport type { ThemeMode } from \"../../hooks/use-theme-mode\";\nimport { ThemeInit } from \"../../theme-store/init\";\nimport type { CustomFlowbiteTheme } from \"./FlowbiteTheme\";\n\nexport interface ThemeProps {\n mode?: ThemeMode;\n theme?: CustomFlowbiteTheme;\n}\n\ninterface FlowbiteProps {\n children: React.ReactNode;\n theme?: ThemeProps;\n}\n\nexport const Flowbite: FC<FlowbiteProps> = ({ children, theme }) => {\n return (\n <>\n <ThemeInit mode={theme?.mode} theme={theme?.theme} />\n {children}\n </>\n );\n};\n\nFlowbite.displayName = \"Flowbite\";\n"],"names":[],"mappings":";;;AAGY,MAAC,QAAQ,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK;AACjD,EAAE,uBAAuB,IAAI,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE;AACpD,oBAAoB,GAAG,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC9E,IAAI,QAAQ;AACZ,GAAG,EAAE,CAAC,CAAC;AACP,EAAE;AACF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}