Skip to content

Commit 544f751

Browse files
authored
Update Menu.tsx (#8145)
Fix passing selected elements to `MenuSection` in the Tailwind starter example.
1 parent 604bb08 commit 544f751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

starters/tailwind/src/Menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface MenuSectionProps<T> extends AriaMenuSectionProps<T> {
6060

6161
export function MenuSection<T extends object>(props: MenuSectionProps<T>) {
6262
return (
63-
<AriaMenuSection className="first:-mt-[5px] after:content-[''] after:block after:h-[5px]">
63+
<AriaMenuSection {...props} className="first:-mt-[5px] after:content-[''] after:block after:h-[5px]">
6464
<Header className="text-sm font-semibold text-gray-500 dark:text-zinc-300 px-4 py-1 truncate sticky -top-[5px] -mt-px -mx-1 z-10 bg-gray-100/60 dark:bg-zinc-700/60 backdrop-blur-md supports-[-moz-appearance:none]:bg-gray-100 border-y border-y-gray-200 dark:border-y-zinc-700 [&+*]:mt-1">{props.title}</Header>
6565
<Collection items={props.items}>
6666
{props.children}

0 commit comments

Comments
 (0)