Description
- A text editor captures multi-line free text entered or edited by a user.
- For example, notes about clients or a short email message.
- It includes styling tools so the user can format the text.
- If you have a styling tool that you'd like us to add to the text editor component, please let us know.
See how you can contact the Design System team
Anatomy
Anatomy
Size
- Text editor comes in S, M, and L sizes.
- Customize a swappable block's height using its presets.
- The text area height expands to the height of the content.
- Display a vertical scrollbar when the content exceeds the maximum height of the text area.
Responsive
Small screen
Variations
Use text editor variations separately or together.
Character limit
Optional toggles
Link preview
@-mention
Draft with copilot header
Copilot processing
Insert a hyperlink
As well as simply pasting a link URL into the text editor, a user can also insert a hyperlink.
Before hyperlink inserted
Hyperlink dialog
Dialog with errors
After hyperlink inserted
Dos and don'ts
Do
Do
Do
Do
Resources
Industry guidance from Luke Wroblewski