(props: ListBoxItemProps)
| 21 | } |
| 22 | |
| 23 | export function ListBoxItem(props: ListBoxItemProps) { |
| 24 | let textValue = |
| 25 | props.textValue || (typeof props.children === 'string' ? props.children : undefined); |
| 26 | return ( |
| 27 | <AriaListBoxItem {...props} textValue={textValue}> |
| 28 | {composeRenderProps(props.children, children => |
| 29 | typeof children === 'string' ? <Text slot="label">{children}</Text> : children |
| 30 | )} |
| 31 | </AriaListBoxItem> |
| 32 | ); |
| 33 | } |
| 34 | |
| 35 | export function ListBoxSection<T>(props: ListBoxSectionProps<T>) { |
| 36 | return <AriaListBoxSection {...props} />; |
nothing calls this directly
no test coverage detected