UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

15 lines (14 loc) 689 B
import { jsx as _jsx } from "react/jsx-runtime"; import { twMerge } from 'tailwind-merge'; import { mergeDeep } from '../../helpers/merge-deep'; import { getTheme } from '../../theme-store'; import { ListGroupItem } from './ListGroupItem'; const ListGroupComponent = ({ children, className, theme: customTheme = {}, ...props }) => { const theme = mergeDeep(getTheme().listGroup, customTheme); return (_jsx("ul", { className: twMerge(theme.root.base, className), ...props, children: children })); }; ListGroupComponent.displayName = 'ListGroup'; ListGroupItem.displayName = 'ListGroup.Item'; export const ListGroup = Object.assign(ListGroupComponent, { Item: ListGroupItem, });