IEmptyStateSlots
interface
Feedback & Status
Slot contract for OrigamEmptyState. All slots are optional. The default slot replaces the entire built-in layout; targeted slots (icon, title, description, actions) swap individual pieces.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- default() => any
- Replaces the entire built-in layout (icon + title + description + actions) for a fully bespoke empty page.
- icon() => any
- Replaces the default OrigamIcon. Use for SVG or <img> illustrations. Mark aria-hidden="true" for decorative content.
- title() => any
- Replaces the rendered title element. Wins over the title prop when both are provided.
- description() => any
- Replaces the rendered description element. Wins over the description prop when both are provided.
- actions() => any
- Actions row rendered below the description. Typically holds 1–2 buttons (Create, Retry, Sign in …).
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Custom illustration with a retry action