Apifox Markdown English
  1. Basic Syntax and Features
Apifox Markdown English
  • Welcome to Apifox Markdown
  • Basic Syntax and Features
    • Title and Text
    • Lists & Tables
    • Image
    • Video
    • Code
    • Icon
    • Tailwind CSS Supports
  • Components
    • Admonition
    • Hightlight
    • Accordion
    • AccordionGroup
    • Multiple Columns
    • Card
    • Card Group
    • Image Frame
    • Image Background
    • Step
    • Tab
    • Tip
    • Copy to Clipboard
    • Text Hover Tip
    • Container
    • Text Drawing - Mermaid
      • Graph
      • Sequence Diagram
      • Class Digram
      • State Diagram
      • Entity Relationship Diagram
      • Journey Map
      • Gantt Chart
      • Pie Chart
    • Formula
      • Inline Formula
      • Block-level Formula
  • Other Questions
    • Shortcuts
  1. Basic Syntax and Features

Icon

Currently, we directly support the following icon libraries: Material Design Icons (MDI), Remix Icon, and Lucide Icons.

Example#

Code:
<Icon icon="material-two-tone-storefront"/>

Using Icons within Text#

An icon inserted within text.
An icon <Icon icon="material-two-tone-storefront"/>  inserted within text.

Setting Icon Color#

Example:
Code:
<Icon icon="material-two-tone-storefront" color="blue"/>

Setting Icon Size#

Example:
Code:
<Icon icon="material-two-tone-storefront" size={25}/>

Using Icons within Components#

Components like Collapse, Collapse Group, Card, Card Group, Steps, Notice, and Highlight all support the use of icons. Most components achieve this by adding the parameter "icon="material-two-tone-storefront".
Example:
Card with Icon
This is the card content.
Code:
<Card title="Card with Icon" icon="material-two-tone-storefront" > 
This is the card content.
</Card>

Parameter Description#

Icon
icon
string 
required
The icon name should follow the format: [iconSetName]-[IconSetVariant]-[IconName] - url. The URL should start with http:// or https://.
color
string 
optional
Non-URL icons are supported. The following preset colors will change with the theme: pink, blue, purple, cyan, green, magenta, red, orange, yellow, volcano, geekblue, lime, gold, and primary.
size
number 
optional
Icon Size
Previous
Code
Next
Tailwind CSS Supports
Built with