Documentation
Components
Badge

Badge

A series of interactive headings arranged vertically, each revealing a section of content when clicked.

Installation

Install the package

npm i @start-base/start-ui

Add the styles

To use the React form elements styles in a Next.js project, import the styles in your layout.tsx file.

app/layout.tsx
import "@start-base/start-ui/styles.css";

Import the component

import Badge from '@start-base/start-ui/Badge';

Usages

Badge Default

10

Example

Badge With Color

10

Example

Badge with dot variant

Example

Badge with position

10

Example

Badge with position

10

Example

Badge with max content

500

Example

API

NameTypeDefaultVariantsDescription
contentstringContent of the Badge
colornumberprimary secondary success errorColor of the Badge
variantstringdefaultdefault dotVariant of the Badge
positionstringtop-end top top-start start bottom-start bottom bottom-end endPosition of the Badge
invisiblebooleanfalseInvisible of the Badge
classNamestringClassname of the Badge
containerClassNamestringContainer Classname of the Badge
childrenobjectChildren of the Badge