@vertisanpro/flowbite-react
Version:
Non-Official React components built for Flowbite and Tailwind CSS
10 lines (9 loc) • 566 B
JavaScript
import { twMerge } from '@vertisanpro/tailwind-merge';
import React from 'react';
import { mergeDeep } from '../../helpers/merge-deep';
import { getTheme } from '../../theme-store';
export const FooterLink = ({ as: Component = 'a', children, className, href, theme: customTheme = {}, ...props }) => {
const theme = mergeDeep(getTheme().footer.groupLink.link, customTheme);
return (React.createElement("li", { className: twMerge(theme.base, className) },
React.createElement(Component, { href: href, className: theme.href, ...props }, children)));
};