0.0.3 • Published 4 months ago

@tuv-indo/badges v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

tuv badges

tuv badges is a strict and customizable badges component for web development projects, designed for simplicity and adherence to strict design guidelines.

Screenshots

App Screenshot

Package instalation

Instal package using pnpm

  pnpm add @tuv/badges

Instal package using yarn

  yarn add @tuv/badges

Instal package using npm

  npm i @tuv/badges

Usage/Examples

import React from "react";
import ReactDOM from "react-dom/client";
import {Badges} from "@tuv/badges";

const App = () => (
  <div>
    <Badges variant="success" text="hello" size="md" />
    <Badges variant="danger" text="hello" size="md" />
    <Badges variant="info" text="hello" size="md" />
    <Badges variant="warning" text="hello" size="md" />
    <Badges variant="dark" text="hello" size="md" />
  </div>
);

ReactDOM.createRoot(document.getElementById("app")!).render(<App />);

Props @tuv/badges

Props that you can pass to <Badges {...props} />

Prop NameValuerequired
size"sm" / "md" / "lg" / "xl 'false
variant"success" / "danger" / "info" / "warning" / "dark"false
textstringtrue
LeftIconReact.ComponentType<SVGProps>false
RightIconReact.ComponentType<SVGProps>false
borderbooleanfalse
0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

8 months ago