# Application Form: Rich Text Form

A compose form with a title field and an editor toolbar of formatting actions, a write and preview toggle, plus attach, mention, and publish controls.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/rich-text-form
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Forms](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms)
- Created: 2026-07-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/rich-text-form.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-forms-rich-text-form
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, checkbox, input, label, textarea
- Installs to: `@/components/blocks/application-pro/forms/rich-text-form`

## About this block

Rich Text Form is a compose surface for project updates. A
title field sits above an editor panel whose toolbar carries
formatting actions, bold, italic, and link, plus structure
actions, bulleted list, numbered list, quote, and code, with
a Write and Preview segmented toggle on the right. The editor
holds a markdown draft, and a footer strip adds attach and
mention actions beside a markdown note. An Email subscribers
checkbox and Save draft with Publish update close the form.

The toolbar buttons come from two small action arrays, so
the icon row stays declarative and easy to extend. The
editor is a plain Textarea seeded with markdown; the Write
and Preview toggle is presentational here, ready to swap the
panel for a rendered view in a live build. The subscriber
note names the exact audience, 46 followers, so the sender
knows the reach before publishing.

## When to use

Reach for this block anywhere someone writes a formatted
body inside your app: status updates, release notes, docs,
or announcements. Keep the toolbar declarative and wire each
action to your editor, then connect the Write and Preview
toggle to a rendered markdown panel.

A natural flow around it on an Application Pro page:

**Before**

- [App shells](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- [Activity](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity)

**After**

- [Notifications](https://www.shadcn-ui-blocks.com/blocks/application-pro/notifications)
- [Comments annotations](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations)

## What you can display

One strong use is the project update composer. Other rich
text surfaces:

- **Release note.** A titled body with formatting and a
  checkbox to notify watchers on publish.
- **Support reply.** A composer with attach and mention
  actions and a preview before sending.
- **Doc page.** A longer editor whose toolbar adds headings
  and quotes for structured writing.

> Tip: naming the exact subscriber count next to the notify
> checkbox is what turns a vague toggle into an informed
> choice.

## More in Application Forms

- [Address Form Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/address-form-card)
- [API Token Create Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/api-token-create-form)
- [Bulk Import CSV Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/bulk-import-csv-card)
- [Conditional Fields Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/conditional-fields-form)
- [Create Project Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/create-project-form)
- [Cron Schedule Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/cron-schedule-form)
- [Danger Zone Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/danger-zone-form)
- [Date Range Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/date-range-form)
- [Feedback Form Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/feedback-form-card)
- [File Field Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/file-field-form)
- [Inline Edit Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/inline-edit-form)
- [Inline Validation Fields](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/inline-validation-fields)
- [Managed Fields Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/managed-fields-form)
- [Multi Step Form Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/multi-step-form-panel)
- [Notification Matrix Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/notification-matrix-form)
- [Password Strength Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/password-strength-form)
- [Payment Details Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/payment-details-form)
- [Query Builder Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/query-builder-form)
- [Repeatable Rows Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/repeatable-rows-form)
- [Review and Submit Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/review-and-submit-card)
- [Searchable Select Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/searchable-select-blueprint)
- [Settings Form Two Col](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/settings-form-two-col)
- [Stepper Wizard Review](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/stepper-wizard-review)
- [Tag Input Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/tag-input-form)
- [Threshold Slider Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/threshold-slider-form)
- [Unsaved Changes Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/unsaved-changes-form)
- [Validation States Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/validation-states-form)
- [View Only Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/view-only-form)
- [Weekly Hours Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/weekly-hours-form)
