0.1.1-beta.0 • Published 1 year ago

@violetui/badge v0.1.1-beta.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@violetui/badge

Usage

first import the button component:

const Badge = require('@violetui/badge');
// or
import Badge From '@violetui/badge'

use it:

<Badge hideBadge={false} content={33} color="primary" variant="Large">
  <Icon />
</Badge>

Props

  1. variant(optional): "small" | "large"

  2. content(optional): Number

  3. color(optional): "primary" | "secondary" | "tertiary" | "error" | "warning" | "success"

  4. hideBadge(optional): Boolean