UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

24 lines (23 loc) 773 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { forwardRef } from "react"; import Icon from "../Icon/Icon.js"; const DropdownItem = /*#__PURE__*/ forwardRef(({ icon, children, ...props }, ref)=>{ return /*#__PURE__*/ _jsxs("div", { ref: ref, className: "bf-dropdown-item", ...props, children: [ icon && /*#__PURE__*/ _jsx(Icon, { icon: icon, className: "bf-dropdown-item-icon", marginRight: true }), /*#__PURE__*/ _jsx("div", { className: "bf-dropdown-item-content", children: children }) ] }); }); DropdownItem.displayName = "Dropdown.Item"; export default DropdownItem;