(props: MenuSectionProps<T>)
| 753 | > {} |
| 754 | |
| 755 | export 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 | |
| 768 | export interface MenuItemProps |
| 769 | extends |
nothing calls this directly
no outgoing calls
no test coverage detected