Slot API
import { Slot } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
align | 'start' | 'center' | 'end' | |
fallback | string | |
headless | boolean | |
inline | boolean | |
name | string | |
onMissing | () => void | |
onResolved | () => void | |
onSlotChange | (detail: SlotChangeDetail) => void | |
required | boolean | |
size | 'sm' | 'md' | 'lg' | |
tone | 'brand' | 'success' | 'warning' | 'danger' | |
variant | 'plain' | 'surface' | 'outline' | 'soft' | 'chip' | 'contrast' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-slot>
Slot renders the ui-slot custom element from @editora/ui-core, which can also be used without React.
Attributes: align, fallback, headless, inline, name, required, size, tone, variant
Events: missing, resolved, slotchange