tuil
ReferencePackages@mwillbanks/tuil-themeAPI

resolveSlotProps

function exported by @mwillbanks/tuil-theme.

View rawEdit

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

MemberTypeRequiredDescriptionRelated types
propsPartial<TProps> | SlotPropFactory<TProps, TState> | undefinedYesSupplies the props value as Partial<TProps> | SlotPropFactory<TProps, TState> | undefined.SlotPropFactory
stateTStateYesSupplies the state value as TState.
themeThemeYesSupplies 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.

Source

View the secondary source reference

Package

@mwillbanks/tuil-theme

On this page