Skip to content

Fix MenuSection missing props in Tailwind starter #8145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion starters/tailwind/src/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface MenuSectionProps<T> extends AriaMenuSectionProps<T> {

export function MenuSection<T extends object>(props: MenuSectionProps<T>) {
return (
<AriaMenuSection className="first:-mt-[5px] after:content-[''] after:block after:h-[5px]">
<AriaMenuSection {...props} className="first:-mt-[5px] after:content-[''] after:block after:h-[5px]">
<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>
<Collection items={props.items}>
{props.children}
Expand Down