RegisterPlacementSlotTypeOptions
RegisterPlacementSlotTypeOptions<
P> =Omit<PlacementSlotType<P>,"accepts"|"defaultProps"|"priority"> &object
Options for registering a custom placement type. Identical to PlacementSlotType but all fields are required except defaultProps, accepts, and priority.
Type Declaration
Section titled “Type Declaration”accepts?
Section titled “accepts?”
optionalaccepts?: (output) =>boolean
Parameters
Section titled “Parameters”output
Section titled “output”PlacementOutput
Returns
Section titled “Returns”boolean
defaultProps?
Section titled “defaultProps?”
optionaldefaultProps?:Partial<P>
priority?
Section titled “priority?”
optionalpriority?:number
Resolution priority (default 0). Higher values are evaluated first.
Type Parameters
Section titled “Type Parameters”P extends PlacementSlotProps = PlacementSlotProps