UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

1 lines 1.16 kB
{"version":3,"file":"Banner.cjs","sources":["../../../src/components/Banner/Banner.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, type ComponentProps } from \"react\";\nimport { resolveProps } from \"../../helpers/resolve-props\";\nimport { useThemeProvider } from \"../../theme/provider\";\n\nexport type BannerProps = ComponentProps<\"div\">;\n\nexport const Banner = forwardRef<HTMLDivElement, BannerProps>((props, ref) => {\n const provider = useThemeProvider();\n const mergedProps = resolveProps(props, provider.props?.banner);\n\n return <div ref={ref} data-testid=\"flowbite-banner\" role=\"banner\" tabIndex={-1} {...mergedProps} />;\n});\n\nBanner.displayName = \"Banner\";\n"],"names":["forwardRef","provider","useThemeProvider","resolveProps","jsx"],"mappings":";;;;;;;AAMY,MAAC,MAAM,GAAGA,gBAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACjD,EAAE,MAAMC,UAAQ,GAAGC,yBAAgB,EAAE;AACrC,EAAE,MAAM,WAAW,GAAGC,yBAAY,CAAC,KAAK,EAAEF,UAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;AACjE,EAAE,uBAAuBG,cAAG,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,aAAa,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,WAAW,EAAE,CAAC;AAC5H,CAAC;AACD,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}