# TallStackUI: Badge
> TallStackUI is a TALL Stack (Tailwind CSS, Alpine.js, Laravel, Livewire)
> component library providing 65+ Blade components for building modern web interfaces.
An inline badge component for labels, tags, and status indicators. Supports solid, light, and outline styles with optional icons and multiple sizes.
## Basic Usage
```blade
```
```blade
```
```blade
```
## Attributes
| Attribute | Type | Default | Description |
|-----------|--------------|-----------|---------------------------------------------------|
| text | string\|null | null | Text content of the badge |
| icon | string\|null | null | Heroicon name displayed alongside the text |
| position | string\|null | 'right' | Icon position relative to text: 'left' or 'right' |
| xs | bool | null | Extra-small size (default) |
| sm | bool | null | Small size |
| md | bool | null | Medium size |
| lg | bool | null | Large size |
| color | string\|null | 'primary' | Color theme (e.g., primary, red, green, yellow) |
| square | bool | false | Removes border radius for square corners |
| round | bool | false | Uses fully rounded (pill) border radius |
| solid | bool | true | Uses the solid color style variant |
| outline | bool | null | Uses the outline color style variant |
| light | bool | null | Uses the light color style variant |
## Slots
| Slot | Description |
|-----------|--------------------------------------------------------------------------|
| (default) | Custom content, used when `text` is not provided |
| left | Custom content rendered before the text (overrides left-positioned icon) |
| right | Custom content rendered after the text (overrides right-positioned icon) |
## Soft Customization
Soft customization allows you to override default Tailwind CSS classes used by this component at runtime, either through a service provider or scoped per-instance.
### Customization
```php
TallStackUi::customize()
->badge()
->block('wrapper.class', 'your-tailwind-classes');
```
### Available Blocks
| Block Name | Purpose |
|-----------------------|---------------------------------------------------------------|
| wrapper.class | Base badge styles (inline-flex, border, padding, font) |
| wrapper.sizes.xs | Extra-small text size |
| wrapper.sizes.sm | Small text size |
| wrapper.sizes.md | Medium text size |
| wrapper.sizes.lg | Large text size |
| clickable | Cursor style applied when wire:click or x-on:click is present |
| icon | Icon dimensions |
| border.radius.rounded | Default rounded border radius |
| border.radius.circle | Fully rounded (pill) border radius |