Fusion UI LogoFusion UI Logo
Fusion UI LogoFusion UI Logo
/
Getting Started
Concepts
Components
Example Apps
Getting Started
Concepts
Components
Example Apps
Fusion UI LogoFusion UI Logo
Getting Started
Concepts
Components
Example Apps
Overview
Actions
Button
Button Group
Segmented Button
Deprecated
Split Button
Toggle Button
Click To Copy
Toolbar
Navigation
Main Nav
Side Menu
Page Header
Tabs
Breadcrumbs
On-Page Menu
Link
Command Menu
Application Switcher
Context Switcher
Account Menu
Menu Bar
Deprecated
Inputs & Forms
Form
Form Actions
Deprecated
Form Divider
Form Field
Form Repeat
Form Spacing
Input
Prefix & Suffix
Rich Text Input
Autocomplete
Select
Date / Time Input
Calendar
Slider
Selection
Checkbox
Radio
Switch
Switch Select
Chip
Chip Choice
Chip Filter
Chip Input
Chip Sortable
Visual Select
Pricing Plan Select
Feedback & Loading
Banner
Inline Message
Snackbar
Inline Snackbar
Loading Spinner
Skeleton
Text Skeleton
Contextual Information
Badge
Status
Tag
Tooltip
Info
Hotkey
Icon
Icon Sizer
Containers & Overlays
Tile
Tile Content
Tile Footer
Tile Header
Annotated Section
Modal
Sheet
Popover
Context Menu
Data Display
Data Table
List
Timeline
Data Visualization
KPI Card
Ratio Card
Bar Chart
Line Chart
Pie Chart
Heatmap Calendar
Layout
Container
Stack Layout
Flow Layout
Internals
Blanket
Expansion Panel
Menu List Base
Menu Group
Search Bar
Components
...
Badge

Badge

Small counter or dot on another element, e.g. unread items.

Overview

A Badge is a small dot or counter on another element. With a label and without showLabel, the label appears on hover.

Simple Badge:
123
456
Badge without Label (children):
Hovered Badge:
789
789493284332
"use client";
import {Badge} from "@brynlabs/fusion-ui";
import React from "react";
export const BadgeExample = () => (
<div
style={{
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "start",
gap: "10px",
}}>
<div style={{display: "flex", alignItems: "center", gap: "10px"}}>
Simple Badge:
<Badge>123</Badge>
<Badge style={"success"}>456</Badge>
</div>
<div style={{display: "flex", alignItems: "center", gap: "10px"}}>
Badge without Label (children):
<Badge showLabel={false} style={"warn"}></Badge>
<Badge showLabel={false} style={"critical"}></Badge>
</div>
<div style={{display: "flex", alignItems: "center", gap: "10px"}}>
Hovered Badge:
<Badge showLabel={false} style={"success"}>
789
</Badge>
<Badge showLabel={false}>789493284332</Badge>
</div>
</div>
);

Playground

505
style
import { Badge } from "@brynlabs/fusion-ui"
<Badge
style={"primary"}
showLabel={true}>
</Badge>