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.

typescript

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.

items
requis
ReadonlyArray<TTextareaToolbarCommand>
Ordered list of toolbar command identifiers to render as buttons. Passed down from the parent TextareaField.
active
requis
ITextareaRichActiveState
Map of currently active formatting states (bold, italic, link, …) — drives the pressed/active visual on each button.
position
TTextareaToolbarPosition
Vertical placement of the toolbar relative to the textarea — "top" or "bottom". Default "top".
disabled
boolean
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

html