UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

10 lines (9 loc) 451 B
'use client'; import { jsx as _jsx } from "react/jsx-runtime"; import { twMerge } from 'tailwind-merge'; import { useDropdownContext } from './DropdownContext'; export const DropdownDivider = ({ className, theme: customTheme = {}, ...props }) => { const { theme: rootTheme } = useDropdownContext(); const theme = customTheme.divider ?? rootTheme.floating.divider; return _jsx("div", { className: twMerge(theme, className), ...props }); };