Rich text editor
For stories, notes or anything longer than a line. It saves one JSON document you can keep in a single database column, and hands images to your upload function, so any storage works. The toolbar works from the keyboard too.
- Component
- Radix
- Light and dark
- Keyboard friendly
- Updated 3 weeks ago
Paste this into your agent.
Add a writing box with bold, italics, headings, lists, links and images to <the page you want it on>. Install it with: npx shadcn add @ollie/rich-text-editor Pass label in as props. Handle onChange and onUploadImage yourself; don't fetch inside the component. Keep the ocean theme tokens.
More components
- DropzoneDrag files in, or click to choose. Wrong types get turned away.
- Scenario BuilderWeigh what matters, set the rules, and compare the options.
- Multi comboboxSearch and pick one or many from a long list.
- Date range pickerPick a date range, or one tap for "last 30 days".
- Filter barSearch and filters that stay in the URL, so links keep them.
- Sort menuPick what to sort by and which way, in one menu.
- Inline editClick text to edit it right there. Saves when you click away.
- Number inputA number box that won't change when you scroll past it.
- Segmented controlPick one of a few options, all visible at once.
- File uploadUpload several files at once, with progress and retry for each.