Blossom UI

Badges

Badge component in seven colors, filled or outlined, rounded, with icons and an optional dismiss button for tags.

How to use it

Run npx @blossomui/react add badge, or copy src/components/UI/Badges/Badge.tsx into your React project and import it.

import { Badge } from './components/ui/Badge'

Props

BadgeProps

PropTypeDescription
dismissLabelstringAccessible name of the dismiss button.
colorBadgeColor | (string & {})A preset, `accent` for the brand color or any CSS color, for example `#7c3aed`.
outlinedbooleanBorder instead of the soft filled style.
roundedbooleanFully rounded corners.
iconReactNodeIcon shown before the text. Without children it renders a compact icon-only badge.
onDismiss() => voidWhen set, a close button is shown and this is called when it is pressed.

Getting started

  • Introduction
  • Installation
  • Changelog

Customization

  • Colors
  • Brand color
  • Texts and translation

Components

  • Accordion
  • Alert dialog
  • Alerts
  • Avatar
  • Badges
  • Banner
  • Breadcrumb
  • Buttons
  • Calendar
  • Cards
  • Carousel
  • Charts
  • Chip input
  • Collapsible
  • Color picker
  • Combobox
  • Command palette
  • Context menu
  • Copy button
  • Date picker
  • Drawer
  • Dropdown
  • Empty state
  • File upload
  • Footer
  • Forms
  • Hover card
  • Jumbotron
  • KBD
  • Menubar
  • Modal
  • Navbar
  • Navigation menu
  • Number input
  • OTP input
  • Pagination
  • Popover
  • Pricing
  • Progress
  • Rating
  • Resizable panels
  • Scroll area
  • Segmented control
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Spinners
  • Stats
  • Stepper
  • Survey
  • Table
  • Tabs
  • Time picker
  • Timeline
  • Timer button
  • Toasts
  • Tooltip
  • Transfer list
  • Tree