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

Function Menu

starters/tailwind/src/Menu.tsx:24–31  ·  view source on GitHub ↗
(props: MenuProps<T>)

Source from the content-addressed store, hash-verified

22import {Popover, type PopoverProps} from './Popover';
23
24export function Menu<T>(props: MenuProps<T>) {
25 return (
26 <AriaMenu
27 {...props}
28 className="font-sans p-1 outline outline-0 max-h-[inherit] overflow-auto [clip-path:inset(0_0_0_0_round_.75rem)] empty:text-center empty:pb-2"
29 />
30 );
31}
32
33export function MenuItem(props: MenuItemProps) {
34 let textValue =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected