IRichToolbarProps
interface
Form & Input
Props for the internal <OrigamRichToolbar> sub-component of OrigamTextareaField. Kept package-private so the API can evolve without breaking external consumers. Exposes the command list, current active-format state, optional position, and disabled flag.
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.
- itemsrequisReadonlyArray<TTextareaToolbarCommand>
- Ordered list of toolbar command identifiers to render as buttons. Passed down from the parent TextareaField.
- activerequisITextareaRichActiveState
- Map of currently active formatting states (bold, italic, link, …) — drives the pressed/active visual on each button.
- positionTTextareaToolbarPosition
- Vertical placement of the toolbar relative to the textarea — "top" or "bottom". Default "top".
- disabledboolean
- Disables all toolbar buttons when the parent TextareaField is disabled.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Rendering the rich toolbar with a custom command set