Genesis
@stable

Slots

`{ [part]: Component | null }` — see {@link renderSlot}.

packages/ui/src/slots.tsx

Import
Subpath export: @marktiderman/genesis-ui
import { Slots } from "@marktiderman/genesis-ui";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

SlotOverride

Replace a part (`ComponentType`), or eject it (`null`).

No declared props.

SlotPropsFor

`{ [part]: extraProps }` — merged over what genesis passes.

No declared props.

Slots

`{ [part]: Component | null }` — see {@link renderSlot}.

No declared props.

renderSlot

Renders one slot: the override if given, the default otherwise, nothing if ejected with `null`. `extra` merges LAST, so `slotProps` wins over genesis's own value. That is deliberate: a consumer reaching for `slotProps` is overriding on purpose, and a hatch that silently loses to the default is not a hatch. `className` is the one prop a caller should merge with `cn()` instead of replacing.

No declared props.