Bootstrap

API slot

Slot

function

Slot<Props>(parameter): Element

The React Slot component, allowing to extensively customize widgets.

The input slotContent can be a react component, a function or jsx.

Type Parameters

Props extends object

Parameters
parameter

the react component parameter

props

Props

the react component props

slotContent

SlotContent<Props>

the slot content

Returns

Element

the slot component