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

Function MenuSection

packages/@react-spectrum/s2/src/Menu.tsx:755–766  ·  view source on GitHub ↗
(props: MenuSectionProps<T>)

Source from the content-addressed store, hash-verified

753> {}
754
755export function MenuSection<T>(props: MenuSectionProps<T>): ReactNode {
756 // remember, context doesn't work if it's around Section nor inside
757 let {size} = useContext(InternalMenuContext);
758 return (
759 <>
760 <AriaMenuSection {...props} className={section({size})}>
761 {props.children}
762 </AriaMenuSection>
763 <Divider />
764 </>
765 );
766}
767
768export interface MenuItemProps
769 extends

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected