Skip to content
Velkin LogoVelkin Logo
Velkin
VELKIN/UI

Modern UI components for product teams and their AI agents. Lit core, typed wrappers, live MCP.

sales@velkinui.com

Product

  • Docs
  • Components
  • Studio
  • Pricing

Resources

  • Quick start
  • Blog
  • Changelog
  • Roadmap
  • Status

Project

  • About
  • Contact
  • License
  • Privacy
  • Terms

© 2026 Velkin. MIT core · Pro licenses available.

VELKIN

Text Editor

Pro

A rich text editor component with formatting toolbar and fonts.

vu-text-editor · @velkin/react-pro/text-editor

Copy page

Import

React
npm i @velkin/react-pro

import { LicenseInfo } from "@velkin/license";
// Vite: import.meta.env.VITE_VELKIN_LICENSE_KEY
// Next: process.env.NEXT_PUBLIC_VELKIN_LICENSE_KEY
LicenseInfo.setLicenseKey(import.meta.env.VITE_VELKIN_LICENSE_KEY ?? process.env.NEXT_PUBLIC_VELKIN_LICENSE_KEY ?? "");

// @velkin-pro
import { VuTextEditor } from "@velkin/react-pro/text-editor";

Examples

API

Props

PropTypeDefaultDescription
valuestring""Text content.
editorStylePartial{}External style seed merged into the editor.
presetsVuTextEditorPresets{}Preset lists for toolbar selects.
useLocalFontsbooleanfalseEnables `queryLocalFonts()` on font field focus.
variantVuTextEditorVariant"default"Field chrome recipe.
toneVuTextEditorTone"normal"Neutral chrome weight.
sizeVuTextEditorSize"md"Toolbar + textarea scale.
radiusVuTextEditorRadius"md"Corner preset (`none`/`sm`/`md`/`lg`/`full`). Default: `md`.
blockbooleanfalseStretches to container width.
disabledbooleanfalseDisables editing and toolbar controls.
readonlybooleanfalseKeeps focus but blocks edits.
labelstring""Plain-text label fallback.
placeholderstring""Textarea placeholder.
clearlabelstring""Clear text action label override.
resetstylelabelstring""Reset styles action label override.
arialabelstring""Accessible name when no visible label is provided.

Events

EventDetailDescription
vu-changeVuTextEditorChangeDetailWhen `value` or `style` changes.

Slots

SlotDescription
labelRich label markup; takes precedence over string `label` when assigned.

CSS parts

PartDescription
fieldColumn stacking label and editor shell.
labelVisible label element.
containerBordered editor shell (toolbar + body).
toolbarFormatting toolbar row.
toolbar-dividerHairline between toolbar and editor body.
toolbar-selectToolbar `vu-combobox` controls.
bodyTextarea container region.
textareaEditable textarea surface.
actionsReset action cluster.

Methods

MethodDescription
getValue- Returns current text content.
setValue- Sets text content.
getStyle- Returns the active editor style object.
focus- Focuses the textarea.

Types

NameDefinition
VuTextEditorChangeDetail
{
  value: string;
  style: VuTextEditorStyle;
  source: VuTextEditorChangeSource;
}
VuTextEditorPresets
{
  fontFamilies?: VuTextEditorOption[];
  fontSizes?: VuTextEditorOption[];
  fontWeights?: VuTextEditorOption[];
  textAligns?: VuTextEditorOption[];
  colors?: VuTextEditorOption[];
  backgrounds?: VuTextEditorOption[];
  textDecorations?: VuTextEditorOption[];
  lineHeights?: VuTextEditorOption[];
  initialStyle?: Partial<VuTextEditorStyle>;
}
VuTextEditorRadius
"sm" | "md" | "lg" | "none" | "full"
VuTextEditorSize
"sm" | "md" | "lg"
VuTextEditorTone
"subtle" | "normal" | "strong"
VuTextEditorVariant
"outline" | "default" | "underline"

Related

Inputs

  • Advanced FilterAn advanced filter component with expression input and visual builder.
  • ButtonA clickable button component with multiple variants and states.
  • Button GroupA button group component with shared styling and optional selection.
  • CheckboxA checkbox component with label, hint, and validation.
  • Checkbox GroupA checkbox group component with shared label and validation.
  • Color AreaA two-dimensional color picker component for saturation and brightness.

Guides

  • Pro licenseLicenseInfo and Pro imports
  • FormsFormData, VuForm, and validation
  • EventsonVu* / v-model / e.detail
  • Appearancevariant, color, tone, size

Browse

  • Previous: SwitchEarlier in the sidebar
  • Next: AvatarLater in the sidebar
  • All componentsBrowse the full index