@vertisanpro/flowbite-react
Version:
Non-Official React components built for Flowbite and Tailwind CSS
9 lines (8 loc) • 513 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 FooterTitle = ({ as: Component = 'h2', className, theme: customTheme = {}, title, ...props }) => {
const theme = mergeDeep(getTheme().footer.title, customTheme);
return (React.createElement(Component, { "data-testid": "flowbite-footer-title", className: twMerge(theme.base, className), ...props }, title));
};