co-rich-text-toolbar
This content is not available in your language yet.
Barra de herramientas del editor rich text. Normalmente renderizada internamente por co-rich-text-editor — solo se usa standalone para UIs custom.
Props
| Prop | Atributo | Tipo | Default | Descripción |
|---|---|---|---|---|
disabled | disabled | boolean | false | |
editor | — | Editor | undefined | — | Editor instance (set as a property by the host editor). |
imageUpload | — | ((file: File) => Promise<any>) | undefined | — | Image upload handler (JS property): `(file) => Promise<url | {src, fileId}>`. |
locale | locale | string | 'en' | BCP-47 locale for UI strings (e.g. 'en', 'es-CO', 'pt-BR'). Default English. |
variant | variant | "basic" | "compact" | "full" | "none" | 'basic' | Toolbar layout variant. |
Eventos
| Evento | Detail | Bubbles | Cancelable | Descripción |
|---|---|---|---|---|
coAction | { action: string; payload?: unknown; } | ✓ | ✓ | Emitted whenever a toolbar action runs (observability for hosts). |
coPopoverChange | { open: boolean; } | ✓ | ✓ | Emitted when a toolbar popover/dropdown opens or closes (host hides the selection bubble while one is open to avoid spatial overlap). |
Slots
Este componente no expone slots.
CSS Parts
| Part | Descripción |
|---|---|
::part(button) | A toolbar button |
::part(toolbar) | The toolbar container |
CSS Custom Properties
Este componente no expone CSS custom properties.