/** * Generic SlotProps type for forwarding props to named internal sub-components. * * Usage: * ```ts * type MyComponentProps = { * slotProps?: SlotProps<{ * toggle: { 'aria-label-expand'?: string; 'aria-label-collapse'?: string }; * label: React.HTMLAttributes; * }>; * }; * ``` */ export type SlotProps>> = { [K in keyof Slots]?: Slots[K]; };