Badge
Badge is a component that emphasizes the status of an item to make it immediately recognizable.
<Badge>Badge</Badge>
Usage
import { Badge } from "@yamada-ui/react"
import { Badge } from "@/components/ui"
import { Badge } from "@workspaces/ui"
<Badge />
Change Variant
<Wrap gap="md">
<For each={["solid", "subtle", "surface", "outline"]}>
{(variant, index) => (
<Badge key={index} variant={variant}>
{variant}
</Badge>
)}
</For>
</Wrap>
Change Size
<Wrap gap="md">
<For each={["sm", "md", "lg"]}>
{(size, index) => (
<Badge key={index} size={size}>
{size}
</Badge>
)}
</For>
</Wrap>
Change Color Scheme
<Wrap gap="md">
<For each={["success", "warning"]}>
{(colorScheme, index) => (
<Badge key={index} colorScheme={colorScheme}>
{colorScheme}
</Badge>
)}
</For>
</Wrap>
Props
Similar Components
Tag
Tag is a component used to categorize or organize items using keywords that describe them.
NativeTable
NativeTable is a component for efficiently organizing and displaying data.
Stat
Stat is used to display numbers or data within a box.
Table
Table is a table component equipped with column sorting, row selection, and click event features.
AreaChart
AreaChart is a component for drawing area charts to compare multiple sets of data.
BarChart
BarChart is a component for drawing bar charts to compare multiple sets of data.
Card
Card is a component that groups and displays related information. By default, it renders a article element.
ComposedChart
ComposedChart is a component for drawing composed charts to compare multiple sets of data.