Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Reference for Nuxt UI v4 (125+ components built on Reka UI + Tailwind CSS v4) including forms, overlays, and theming.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
components/editor-toolbar.md
1# EditorToolbar23A customizable toolbar for editor actions that can be displayed as fixed, bubble, or floating menu.45## Key Props67- `items`: as an array of objects with the following properties:89- `label?: string`{lang="ts-type"}10- `icon?: string`{lang="ts-type"}11- `color?: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral"`{lang="ts-type"}12- `activeColor?: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral"`{lang="ts-type"}13- `variant?: "solid" | "outline" | "soft" | "ghost" | "link" | "subtle"`{lang="ts-type"}14- `activeVariant?: "solid" | "outline" | "soft" | "ghost" | "link" | "subtle"`{lang="ts-type"}15- `size?: "xs" | "sm" | "md" | "lg" | "xl"`{lang="ts-type"}16- [`kind?: "mark" | "textAlign" | "heading" | "link" | "image" | "blockquote" | "bulletList" | "orderedList" | "codeBlock" | "horizontalRule" | "paragraph" | "undo" | "redo" | "clearFormatting" | "duplicate" | "delete" | "moveUp" | "moveDown" | "suggestion" | "mention" | "emoji"`{lang="ts-type"}](/docs/components/editor#handlers)17- `disabled?: boolean`{lang="ts-type"}18- `loading?: boolean`{lang="ts-type"}19- `active?: boolean`{lang="ts-type"}20- `tooltip?: TooltipProps`{lang="ts-type"}21- [`slot?: string`{lang="ts-type"}](#with-link-popover)22- `onClick?: (e: MouseEvent) => void`{lang="ts-type"}23- `items?: EditorToolbarItem[] | EditorToolbarItem[][]`{lang="ts-type"}24- `class?: any`{lang="ts-type"}2526You can pass any property from the [Button](/docs/components/button#props) component such as `color`, `variant`, `size`, etc.2728- `layout`: to change how the toolbar is displayed.2930## Usage3132```vue33<UEditorToolbar34<!-- props here -->35/>36```37