The Icon component renders inline icons from the Lucide icon library. Icons are displayed inline with text and can be customized for size.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/devscribe-team/webeditor/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Icons are inline elements that can be inserted anywhere in your text flow. They’re useful for:- Adding visual indicators inline with text
- Creating icon lists or feature callouts
- Enhancing button or link text
- Providing visual context to headings
Insertion
Insert an Icon using the command menu:- Type
/to open the command menu - Search for “icon”
- Select the Icon option
Attributes
The name of the Lucide icon to display. Must match a valid icon name from the Lucide library (e.g.,
FileText, Star, Heart, CheckCircle).The size of the icon in pixels. Common sizes: 16 (small), 20 (default), 24 (medium), 32 (large).
Node specification
The Icon component is an inline, atomic node. It appears inline with text and cannot contain child content.
Usage examples
Inline icon with text
Feature list with icons
Heading with icon
Status indicators
Available icons
The Icon component supports all icons from the Lucide library. Popular icons include:- Common:
FileText,File,Folder,Home,Search,Menu - Actions:
Edit,Trash,Copy,Download,Upload,Save - Status:
CheckCircle,XCircle,AlertCircle,Info,HelpCircle - Arrows:
ArrowRight,ArrowLeft,ArrowUp,ArrowDown,ChevronRight - Media:
Play,Pause,Stop,Volume,Image,Video - Social:
Github,Twitter,Linkedin,Mail,Phone - UI:
Settings,User,Users,Bell,Calendar,Clock - Shapes:
Star,Heart,Square,Circle,Triangle
Editing in the editor
Click any icon to open the edit modal where you can:- Change the icon name
- Adjust the icon size
- Preview the selected icon
TypeScript types
Styling
Icons automatically:- Use the theme’s muted foreground color by default
- Change to foreground color on hover (when editable)
- Align vertically with surrounding text
- Maintain aspect ratio when resized
Best practices
- Use consistent sizing: Stick to standard sizes (16, 20, 24, 32) for visual consistency
- Match text size: Icon size should generally match or slightly exceed surrounding text size
- Choose semantic icons: Use icons that clearly communicate their meaning
- Don’t overuse: Too many icons can make content cluttered and hard to scan
- Test accessibility: Ensure icons supplement text rather than replace it
Icons are decorative elements. Always include descriptive text alongside icons for accessibility and clarity.
Common size guidelines
| Context | Recommended Size | Use Case |
|---|---|---|
| Body text | 16-18px | Inline with paragraph text |
| Default | 20px | Standard icon size |
| Headings | 24px | Section or heading icons |
| Feature cards | 32-48px | Prominent feature highlights |
| Hero sections | 64px+ | Large decorative icons |