(props: ListBoxItemProps)
| 14 | } |
| 15 | |
| 16 | export function DropdownItem(props: ListBoxItemProps) { |
| 17 | let textValue = |
| 18 | props.textValue || (typeof props.children === 'string' ? props.children : undefined); |
| 19 | |
| 20 | return ( |
| 21 | <ListBoxItem {...props} textValue={textValue} className="dropdown-item"> |
| 22 | {composeRenderProps(props.children, (children, {isSelected}) => ( |
| 23 | <> |
| 24 | {isSelected && <Check />} |
| 25 | {typeof children === 'string' ? <Text slot="label">{children}</Text> : children} |
| 26 | </> |
| 27 | ))} |
| 28 | </ListBoxItem> |
| 29 | ); |
| 30 | } |
nothing calls this directly
no test coverage detected