UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

9 lines (8 loc) 478 B
import { jsx as _jsx } from "react/jsx-runtime"; import { twMerge } from 'tailwind-merge'; import { useTheme } from '../../'; import { mergeDeep } from '../../helpers/merge-deep'; export const TimelineTitle = ({ as: Tag = 'h3', children, className, theme: customTheme = {}, ...props }) => { const theme = mergeDeep(useTheme().theme.timeline.item.content, customTheme).title; return (_jsx(Tag, { className: twMerge(theme, className), ...props, children: children })); };