ITextareaRichActiveState
interface
State & Interaction
Reactive state describing which rich-text toolbar commands are currently active at the caret position. Used by the toolbar to render aria-pressed state and the visual active class.
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.
- boldrequisboolean
- Whether the bold command is active at the current caret position.
- italicrequisboolean
- Whether the italic command is active at the current caret position.
- underlinerequisboolean
- Whether the underline command is active at the current caret position.
- coderequisboolean
- Whether the inline code command is active at the current caret position.
- linkrequisboolean
- Whether the cursor is inside a link at the current caret position.
- listBulletrequisboolean
- Whether the cursor is inside an unordered list.
- listOrderedrequisboolean
- Whether the cursor is inside an ordered list.
- headingrequis0 | 1 | 2 | 3
- Active heading level at the caret (0 = no heading, 1 = h1, 2 = h2, 3 = h3).
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Consuming active state in the toolbar slot