--- title: Badge desc: Badges are used to inform the user of the status of specific data. source: https://raw.githubusercontent.com/saadeghi/daisyui/refs/heads/master/packages/daisyui/src/components/badge.css layout: components classnames: component: - class: badge desc: Container element style: - class: badge-outline desc: outline style - class: badge-dash desc: dash outline style - class: badge-soft desc: soft style - class: badge-ghost desc: ghost style color: - class: badge-neutral desc: neutral color - class: badge-primary desc: primary color - class: badge-secondary desc: secondary color - class: badge-accent desc: accent color - class: badge-info desc: info color - class: badge-success desc: success color - class: badge-warning desc: warning color - class: badge-error desc: error color size: - class: badge-xs desc: extra small size - class: badge-sm desc: small size - class: badge-md desc: medium size (default) - class: badge-lg desc: large size - class: badge-xl desc: extra large size --- ### ~Badge Badge ```html Badge ``` ### ~Badge sizes
Xsmall
Small
Medium
Large
Xlarge
```html
Xsmall
Small
Medium
Large
Xlarge
``` ### ~Badge with colors
Primary
Secondary
Accent
Neutral
Info
Success
Warning
Error
```html
Primary
Secondary
Accent
Neutral
Info
Success
Warning
Error
``` ### ~Badge with soft style
Primary
Secondary
Accent
Info
Success
Warning
Error
```html
Primary
Secondary
Accent
Info
Success
Warning
Error
``` ### ~Badge with outline style
Primary
Secondary
Accent
Info
Success
Warning
Error
```html
Primary
Secondary
Accent
Info
Success
Warning
Error
``` ### ~Badge with dash style
Primary
Secondary
Accent
Info
Success
Warning
Error
```html
Primary
Secondary
Accent
Info
Success
Warning
Error
``` ### ~neutral badge with outline or dash style #### These badges use dark text, only use them on light backgrounds
Outline
Dash
```html
Outline
Dash
``` ### ~Badge ghost
ghost
```html
ghost
``` ### ~Empty badge
```html
``` ### ~Badge with icon
Info
Success
Warning
Error
```html
Info
Success
Warning
Error
``` ### ~Badge in a text
Heading 1 Badge Heading 2 Badge Heading 3 Badge Heading 4 Badge Heading 5 Badge

Paragraph Badge

```html

Heading 1 Badge

Heading 2 Badge

Heading 3 Badge

Heading 4 Badge

Heading 5 Badge

Paragraph Badge

``` ### ~Badge in a button ```html ```