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
| Prop | Type | Description |
|---|---|---|
| value | string | |
| error | boolean | |
| fullItem | boolean | |
| className | string | |
| resetValue | boolean | |
| placeholder | string | |
| helperText | string | number | bigint | boolean | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode> | |
| onChange | (value: string) => void | |
| slotProps | { wrapper?: DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> | undefined; } |