Pallas UI
DocsComponents
Core Concepts
    • Introduction
    • Getting Started
    • Theming
    • Color Tokens
    • Spacing & Sizing
    • Layout Guide
    • AspectRatio
    • Box
    • Flex
    • Grid
    • Shapes
Previews
    • Accordion
    • Alert
    • Avatar
    • Badge
    • Breadcrumb
    • Button
    • Carousel
    • Checkbox
    • Combobox
    • Command
    • Date Picker
    • Form
    • Input
    • Input OTP
    • Label
    • MenuBar
    • Modal
    • Popover
    • Progress
    • Radio Group
    • Segmented
    • Select
    • Separator
    • Sheet
    • Sidebar
    • Skeleton
    • Slider
    • Spinner
    • Steps
    • Switch
    • Tabs
    • Textarea
    • Toast
    • Tooltip
    • Typography
  1. Components
  2. Badge

Badge

A visual indicator for notification counts or status information.

Default Badge
Default

Installation

Copy and paste the following code into your project

import { type HTMLStyledProps, styled } from '@styled-system/jsx'
import { badge } from '@styled-system/recipes'
 
export const Badge = styled('div', badge)
 
export type BadgeProps = HTMLStyledProps<typeof Badge>

Update the import paths to match your project setup

Usage

import { Badge } from '@/components/ui/badge'
<Badge variant="default">Badge</Badge>

Examples

Default

Default Badge
Default

Outline

Primary Badge

Dashed

Error Badge

With Icon

Default
Primary
Error

Built with ❤️ by the carbonteq team. The source code is available on GitHub.

© 2025 Pallas UI. All rights reserved.