Components

Mr.Hope ... 2021-2-26 Markdown
  • Components
  • Markdown
Less than 1 minute

# Badge

Badge available in Markdown

# Badge Props

# text

  • Type: string
  • Required: Yes

Text of the badge

# type

  • Type: "tip" | "warn" | "error"
  • Default: "tip"

Badge types:

  • tip
  • warn
  • error

# color

  • Type: string
  • Required: No

Badge color, please fill in CSS color strings

# vertical

  • Type: "top" | "middle"
  • Default: "top"

Vertical position of the badge

# Badge Usage

You can use it in Markdown to add some status for titles or links:

### Badge <Badge text="Building" type="warn"/> <Badge text="MrHope" color="grey" />
1