UNPKG

@vertisanpro/flowbite-react

Version:

Non-Official React components built for Flowbite and Tailwind CSS

9 lines (8 loc) 429 B
import { twMerge } from '@vertisanpro/tailwind-merge'; import React from 'react'; import { mergeDeep } from '../../helpers/merge-deep'; import { getTheme } from '../../theme-store'; export const ListItem = ({ children, className, theme: customTheme = {} }) => { const theme = mergeDeep(getTheme().listGroup.item, customTheme); return React.createElement("li", { className: twMerge(theme.base, className) }, children); };