UNPKG

@accelint/design-toolkit

Version:

An open-source component library to serve as part of the entire ecosystem of UX for Accelint.

4 lines (3 loc) 773 B
'use client'; import {jsx}from'react/jsx-runtime';import'client-only';import {ListBoxItem,composeRenderProps}from'react-aria-components';import {IconProvider}from'../icon/context.js';import {OptionsItemLabel}from'./item-label.js';import {OptionsStyles}from'./styles.js';const{item:O,icon:c}=OptionsStyles();function u({children:o,classNames:m,color:i="info",textValue:p=typeof o=="string"?o:"",...r}){return jsx(ListBoxItem,{...r,className:composeRenderProps(m?.item,t=>O({className:t})),textValue:p,"data-color":i,children:composeRenderProps(o,t=>jsx(IconProvider,{className:c({className:m?.icon}),size:"small",children:typeof t=="string"?jsx(OptionsItemLabel,{children:t}):t}))})}export{u as OptionsItem};//# sourceMappingURL=item.js.map //# sourceMappingURL=item.js.map