UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

1 lines 1.59 kB
{"version":3,"file":"FooterLink.mjs","sources":["../../../../src/components/Footer/FooterLink.tsx"],"sourcesContent":["import type { ComponentProps, ElementType, 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 FlowbiteFooterLinkTheme {\n base: string;\n href: string;\n}\n\nexport interface FooterLinkProps extends ComponentProps<\"a\"> {\n as?: ElementType;\n href: string;\n theme?: DeepPartial<FlowbiteFooterLinkTheme>;\n}\n\nexport const FooterLink: FC<FooterLinkProps> = ({\n as: Component = \"a\",\n children,\n className,\n href,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().footer.groupLink.link, customTheme);\n\n return (\n <li className={twMerge(theme.base, className)}>\n <Component href={href} className={theme.href} {...props}>\n {children}\n </Component>\n </li>\n );\n};\n"],"names":[],"mappings":";;;;;AAKY,MAAC,UAAU,GAAG,CAAC;AAC3B,EAAE,EAAE,EAAE,SAAS,GAAG,GAAG;AACrB,EAAE,QAAQ;AACV,EAAE,SAAS;AACX,EAAE,IAAI;AACN,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE;AACzB,EAAE,GAAG,KAAK;AACV,CAAC,KAAK;AACN,EAAE,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AACzE,EAAE,uBAAuB,GAAG,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,QAAQ,kBAAkB,GAAG,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;AACjL;;;;"}