MCPcopy Create free account
hub / github.com/adobe/react-spectrum / DropdownSection

Function DropdownSection

starters/tailwind/src/ListBox.tsx:110–119  ·  view source on GitHub ↗
(props: DropdownSectionProps<T>)

Source from the content-addressed store, hash-verified

108}
109
110export function DropdownSection<T>(props: DropdownSectionProps<T>) {
111 return (
112 <ListBoxSection className="first:-mt-[5px] after:content-[''] after:block after:h-[5px] last:after:hidden">
113 <Header className="text-sm font-semibold text-neutral-500 dark:text-neutral-300 px-4 py-1 truncate sticky -top-[5px] -mt-px -mx-1 z-10 bg-neutral-100/60 dark:bg-neutral-700/60 backdrop-blur-md supports-[-moz-appearance:none]:bg-neutral-100 border-y border-y-neutral-200 dark:border-y-neutral-700 [&+*]:mt-1">
114 {props.title}
115 </Header>
116 <Collection items={props.items}>{props.children}</Collection>
117 </ListBoxSection>
118 );
119}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected