Badge
Displays a badge or a component that looks like a badge.
Examples
Regular
Preview
LabelLabel0WK
Freemium
Preview
LabelLabel099
Error
Preview
LabelLabel099
Warning
Preview
LabelLabel099
Sizes
Preview
LabelLabelLabelLabel
Animation
Preview
ShineWith Icon
API
| Property | Type | Default | Description |
|---|---|---|---|
| variant | ”regular” | “freemium” | “error" | "regular” | Visual style of the badge. |
| size | ”sm” | “md” | “lg” | “xl" | "md” | Controls the height, padding and font size. |
| icon | React.ReactNode | - | Optional left icon (e.g. from @medway-ui/icons). |
| animation | ”shine” | - | Adds a shine animation effect that sweeps from left to right. |
| asChild | boolean | false | Renders the badge as a child element using Slot. |
| className | string | - | Custom CSS classes. |
| …props | React.ComponentProps<“span”> | - | All native span props are supported. |
Last updated on