diff --git a/packages/components/listbox/src/base/listbox-section-base.tsx b/packages/components/listbox/src/base/listbox-section-base.tsx index bdca28da33..aeedc243c0 100644 --- a/packages/components/listbox/src/base/listbox-section-base.tsx +++ b/packages/components/listbox/src/base/listbox-section-base.tsx @@ -5,7 +5,8 @@ import {DividerProps} from "@nextui-org/divider"; import {ListboxItemProps} from "../listbox-item"; -export interface ListboxSectionBaseProps extends SectionProps<"ul", T> { +export interface ListboxSectionBaseProps> + extends SectionProps<"ul", T, "children" | "title"> { /** * The listbox section classNames. */ diff --git a/packages/utilities/aria-utils/src/collections/section.ts b/packages/utilities/aria-utils/src/collections/section.ts index 949092c64e..ec434fd5b8 100644 --- a/packages/utilities/aria-utils/src/collections/section.ts +++ b/packages/utilities/aria-utils/src/collections/section.ts @@ -6,5 +6,8 @@ import {HTMLNextUIProps, As} from "@nextui-org/system"; * A modified version of the SectionProps from @react-types/shared, with the addition of the NextUI props. * */ -export type SectionProps = BaseSectionProps & - Omit, "children">; +export type SectionProps< + Type extends As = "div", + T extends object = {}, + OmitKeys extends string = "children" | "title", +> = BaseSectionProps & Omit, OmitKeys>;