Import
Usage
Default Mode
Edit Mode (Rich Text)
Props (Default Type)
Renders a plain textarea
Placeholder text
Initial value for uncontrolled component
Maximum character limit (displays character counter when set)
Visual design:
primary (gray background, 6px radius) or secondary (white with border, 12px radius)Callback fired when text changes
Custom styles for the textarea
Name attribute for form submission
Props (Edit Type)
Renders a rich text editor with Tiptap
HTML content for controlled component
Placeholder text when empty
Callback fired when content changes, receives HTML string
Custom button to display in toolbar (positioned absolute top-right)
Custom styles for the editor container
Features
Default Type
- Height: 100px (customizable via style)
- Font: Poppins 15px
- No resize handle
- Custom scrollbar styling
- Optional character counter
- Enforces maxLength if provided
- Focus state with border color change
Edit Type (Rich Text Editor)
- Powered by Tiptap editor
- Formatting toolbar with:
- Text type selector (Heading 1, Heading 2, Paragraph)
- Bold, Italic, Underline
- Text alignment (Left, Center, Right)
- Toolbar height: 63px
- Scrollable content area
- Returns HTML string via onChange
- Rounded container (12px border radius)
- White background with soft border