Badge
Badge(label, color='blue', class_='px-2 py-1 rounded text-sm font-semibold')
A reusable badge component.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
label |
str
|
The badge text. |
required |
color |
str
|
The color of the badge (e.g., blue, green, red). |
'blue'
|
class_ |
str
|
Tailwind classes for styling. |
'px-2 py-1 rounded text-sm font-semibold'
|
Returns:
Name | Type | Description |
---|---|---|
Node |
Node
|
The badge element. |