Badge
Este conteúdo não está disponível em sua língua ainda.
import { Badge } from "@rebasepro/ui";| Prop | Type | Required | Description |
|---|---|---|---|
color |
"error" | "warning" | "primary" | "secondary" |
— | |
children |
React.ReactNode |
yes | |
invisible |
boolean |
— |
Example
Section titled “Example”This is the example the design-system sync renders and verifies for this component.
import { Badge, Avatar } from "@rebasepro/ui";
export const Colors = () => ( <div className="flex items-center gap-6 p-4"> <Badge color="primary"><Avatar>A</Avatar></Badge> <Badge color="secondary"><Avatar>B</Avatar></Badge> <Badge color="warning"><Avatar>C</Avatar></Badge> <Badge color="error"><Avatar>D</Avatar></Badge> </div>);