Skip to content
v2.5.0
English
Русский
Documentation

Slot

Slot is the low-level polymorphic composition primitive behind VegaUI asChild APIs.

Root Props

PropTypeDefault
childrenrequiredReactNode—
—

Any other props are merged into the child element.

Child Parts

  • None. Slot is a single exported utility.

Types

  • SlotProps<T>

State Model

  • Slot has no state.
  • Behavior comes from prop merging plus the semantics of the chosen child element.