Skip to main content

Function: useResolvedProps()

useResolvedProps<P>(rawProps, spec): P & Partial<PropellerInfra>

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

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 & Partial<PropellerInfra>

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