WUI logo

Badge

Badge is the Tag component with small size.

version

4.2.0

install

yarn add @welcome-ui/badge

usage

import { Badge } from '@welcome-ui/badge'

Usage #

<Badge>{0}</Badge>
<Badge>{1}</Badge>
<Badge>2</Badge>
<Badge>3</Badge>
<Badge>4</Badge>
<Badge variant="primary">New</Badge>

Properties #

NameType(s)DefaultRequired
onRemove
() => void
variant
"1"
"2"
"3"
"4"
"5"
"6"
"7"
"dark"
"default"
"error"
"info"
"primary"
"secondary"
"success"
"warning"
shape
"circle"
"square"

Packages #

Dependencies #
Peer dependencies #

Previous

Avatar

Next

Card