resolveSlotProps
function exported by @mwillbanks/tuil-theme.
function
Public function exported by @mwillbanks/tuil-theme.
export function resolveSlotProps<TProps extends object, TState>(
props: Partial<TProps> | SlotPropFactory<TProps, TState> | undefined,
state: TState,
theme: Theme,
): Partial<TProps>;Members
This declaration has no public members.
Parameters
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
props | Partial<TProps> | SlotPropFactory<TProps, TState> | undefined | Yes | Supplies the props value as Partial<TProps> | SlotPropFactory<TProps, TState> | undefined. | SlotPropFactory |
state | TState | Yes | Supplies the state value as TState. | — |
theme | Theme | Yes | Supplies the theme value as Theme. | Theme |
Returns
Partial<TProps> — Returns a value that satisfies Partial<TProps>.
Related types: —
Throws
No thrown errors are documented for this declaration.
Related types
Source
View the secondary source reference