UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

23 lines (21 loc) 685 B
import { SelectParts } from "./chunk-SP7TSFMZ.js"; import { useCerberusContext } from "./chunk-GITT5645.js"; // src/components/select/option.tsx import { jsx, jsxs } from "react/jsx-runtime"; function Option(props) { const { item, ...itemProps } = props; const { icons } = useCerberusContext(); const { selectChecked: CheckedIcon } = icons; return /* @__PURE__ */ jsxs(SelectParts.Item, { ...itemProps, item, children: [ /* @__PURE__ */ jsx(SelectParts.ItemText, { children: item?.label }), /* @__PURE__ */ jsx(SelectParts.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckedIcon, {}) }) ] }); } export { Option }; //# sourceMappingURL=chunk-INQZQMLL.js.map