Component

TextEditor

A Tiptap-backed rich text editor with a composable toolbar, bubble menu, and character counter.

Install

Run the CLI to copy the source into your project.

pnpm dlx @stalk-ui/cli add @stalk-ui/text-editor

Examples

Live previews render through the docs app's PandaCSS codegen.

Theme
<TextEditorDemo />

Props

Public component props extracted from the source TypeScript types.

PropTypeRequiredDefaultDescription
`children``ReactNode`Yes--
`className``string`No--
`label``string`No-Accessible name for the floating toolbar.
PropTypeRequiredDefaultDescription
`target``'color' \'highlight'`No-
`colors``readonly string[]`No--
`label``string`No--
PropTypeRequiredDefaultDescription
`size``'sm' \'md'`No-
PropTypeRequiredDefaultDescription
`emoji``readonly string[]`No--
`label``string`No--
PropTypeRequiredDefaultDescription
`mark``keyof typeof MARKS`Yes--
`label``string`No-Localized label override (defaults to English).
PropTypeRequiredDefaultDescription
`editor``Editor \null`Yes-
`size``'sm' \'md'`No-
`invalid``boolean`No--
`disabled``boolean`No--

Variants

Variant axes exposed by the underlying PandaCSS recipe or slot recipe.

VariantValues
`size``sm`, `md`

Registry

Files this component contributes to your registry install.

  • Manifest: `/r/text-editor.json`
  • Recipe: `textEditor`
  • Files: `src/components/ui/text-editor.tsx`