Skip to content
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {DividerProps} from "@nextui-org/divider";

import {ListboxItemProps} from "../listbox-item";

export interface ListboxSectionBaseProps<T extends object = {}> extends SectionProps<"ul", T> {
export interface ListboxSectionBaseProps<T extends object = Record<string, unknown>>
extends SectionProps<"ul", T, "children" | "title"> {
/**
* The listbox section classNames.
*/
Expand Down
7 changes: 5 additions & 2 deletions packages/utilities/aria-utils/src/collections/section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Type extends As = "div", T extends object = {}> = BaseSectionProps<T> &
Omit<HTMLNextUIProps<Type>, "children">;
export type SectionProps<
Type extends As = "div",
T extends object = {},
Comment thread
wingkwong marked this conversation as resolved.
OmitKeys extends string = "children" | "title",
> = BaseSectionProps<T> & Omit<HTMLNextUIProps<Type>, OmitKeys>;
Comment thread
ritikpal1122 marked this conversation as resolved.