UNPKG

hoda-react

Version:

<div align="center"> <h1>:construction: flowbite-react (unreleased) :construction:</h1> <p> <a href="https://flowbite-react.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src=".github/assets/flowbite-react-github.png"> <

8 lines (7 loc) 459 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import classNames from 'classnames'; import { useTheme } from '../Flowbite/ThemeContext'; export const DropdownItem = ({ children, className, onClick, icon: Icon }) => { const theme = useTheme().theme.dropdown.floating.item; return (_jsxs("li", { className: classNames(theme.base, className), onClick: onClick, children: [Icon && _jsx(Icon, { className: theme.icon }), children] })); };