Skip to content

Editor

Rich text editor with toolbar, built on Tiptap.

Installation

bun add @xerobi/ui
import { Editor } from "@xerobi/ui/editor"

This component is client-side. In Astro, hydrate it with a client directive.

API reference

Editor

PropTypeDescription
valuestring
errorboolean
fullItemboolean
classNamestring
resetValueboolean
placeholderstring
helperTextstring | number | bigint | boolean | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode>
onChange(value: string) => void
slotProps{ wrapper?: DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> | undefined; }

Search documentation

Search pages, components and blocks.