flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
9 lines (8 loc) • 517 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { twMerge } from 'tailwind-merge';
import { mergeDeep } from '../../helpers/merge-deep';
import { getTheme } from '../../theme-store';
export const FooterTitle = ({ as: Component = 'h2', className, theme: customTheme = {}, title, ...props }) => {
const theme = mergeDeep(getTheme().footer.title, customTheme);
return (_jsx(Component, { "data-testid": "flowbite-footer-title", className: twMerge(theme.base, className), ...props, children: title }));
};