2.0.1 • Published 3 years ago

kodobe-react-badge v2.0.1

Weekly downloads
9
License
ISC
Repository
-
Last release
3 years ago

Kodobe React Badge

This is a simple react badge package

Install

npm install kodobe-react-badge

or

yarn add kodobe-react-badge

Setup

import Badge from 'kodobe-react-badge';

Usage

import Badge from "kodobe-react-badge";

function App() {
    return (
        <div>
            <h3>Here is how to use a badge</h3>
             <br />
            <Badge count={"8"}>
                <p>Hello world</p>
            </Badge>
            <br />
            <Badge count={"10"}>
                <div className="simpleBox" />
            </Badge>
            <br />
            <Badge count={"2000"} />
        </div>
    );
}

Options

  • children: Any thing, Badge becomes standalone if empty
  • count: (string, required)
  • style: style object
  • className: string
2.0.1

3 years ago

2.0.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago