Skip to main content

Function: useResolvedProps()

useResolvedProps<P>(rawProps, spec): P

Defined in: composables/react/useResolvedProps.ts:59

useResolvedProps — resolves props through the two-tier precedence explicit prop > ProductGrid context > Propeller infra > default.

Type Parameters

P

P extends object

Parameters

rawProps

P

the component's raw props.

spec

ResolveSpec<P>

per-key resolution rules; keys absent from the spec pass through unchanged.

Returns

P

the props with each spec'd key resolved to its highest-precedence value.