@vertisanpro/flowbite-react
Version:
Non-Official React components built for Flowbite and Tailwind CSS
15 lines (14 loc) • 685 B
JavaScript
import { twMerge } from '@vertisanpro/tailwind-merge';
import React from 'react';
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 (React.createElement("ul", { className: twMerge(theme.root.base, className), ...props }, children));
};
ListGroupComponent.displayName = 'ListGroup';
ListGroupItem.displayName = 'ListGroup.Item';
export const ListGroup = Object.assign(ListGroupComponent, {
Item: ListGroupItem,
});