Skip to content

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

PropAtributoTipoDefaultDescripción
disableddisabledbooleanfalse
editorEditor | undefinedEditor instance (set as a property by the host editor).
imageUpload((file: File) => Promise<any>) | undefinedImage upload handler (JS property): `(file) => Promise<url | {src, fileId}>`.
localelocalestring'en'BCP-47 locale for UI strings (e.g. 'en', 'es-CO', 'pt-BR'). Default English.
variantvariant"basic" | "compact" | "full" | "none"'basic'Toolbar layout variant.

Eventos

EventoDetailBubblesCancelableDescripció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

PartDescripción
::part(button)A toolbar button
::part(toolbar)The toolbar container

CSS Custom Properties

Este componente no expone CSS custom properties.