MCPcopy Index your code
hub / github.com/adobe/react-spectrum / ListBox

Function ListBox

starters/tailwind/src/ListBox.tsx:20–31  ·  view source on GitHub ↗
({children, ...props}: ListBoxProps<T>)

Source from the content-addressed store, hash-verified

18interface ListBoxProps<T> extends Omit<AriaListBoxProps<T>, 'layout' | 'orientation'> {}
19
20export function ListBox<T>({children, ...props}: ListBoxProps<T>) {
21 return (
22 <AriaListBox
23 {...props}
24 className={composeTailwindRenderProps(
25 props.className,
26 'outline-0 p-1 w-[200px] bg-white dark:bg-neutral-900 border border-neutral-300 dark:border-neutral-700 rounded-lg font-sans'
27 )}>
28 {children}
29 </AriaListBox>
30 );
31}
32
33export const itemStyles = tv({
34 extend: focusRing,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected