Skip to content

SlotProps

Defined in: react/markput/src/types.ts:144

Props merged onto the components the editor paints itself. EXTENDS the core contract, so a key core learns to read is a key this type declares.

Not the same key set as Slots, and the names say why: slots.paragraph is consulted only for a row with NO kind, while slotProps.row reaches every row.

  • CoreSlotProps
optional container: Record<string, unknown> & object & DataAttributes;

Defined in: react/markput/src/types.ts:145

optional className: string;
optional style: CSSProperties;
CoreSlotProps.container

optional row: Record<string, unknown> & object & DataAttributes;

Defined in: react/markput/src/types.ts:147

Merged onto EVERY row’s wrapper — kind or paragraph alike, unlike slots.paragraph.

optional className: string;
optional style: CSSProperties;
CoreSlotProps.row