diff --git a/starters/tailwind/src/Menu.tsx b/starters/tailwind/src/Menu.tsx index 36f5634f60e..d1e4f34431d 100644 --- a/starters/tailwind/src/Menu.tsx +++ b/starters/tailwind/src/Menu.tsx @@ -5,11 +5,15 @@ import { MenuItem as AriaMenuItem, MenuProps as AriaMenuProps, MenuItemProps, + MenuSection as AriaMenuSection, + MenuSectionProps as AriaMenuSectionProps, Separator, SeparatorProps, - composeRenderProps + composeRenderProps, + Header, + Collection } from 'react-aria-components'; -import { DropdownSection, DropdownSectionProps, dropdownItemStyles } from './ListBox'; +import { dropdownItemStyles } from './ListBox'; import { Popover, PopoverProps } from './Popover'; interface MenuProps extends AriaMenuProps { @@ -48,6 +52,18 @@ export function MenuSeparator(props: SeparatorProps) { return } -export function MenuSection(props: DropdownSectionProps) { - return ; +export interface MenuSectionProps extends AriaMenuSectionProps { + title?: string + items?: any +} + +export function MenuSection(props: MenuSectionProps) { + return ( + +
{props.title}
+ + {props.children} + +
+ ) }