CircleProgress
CircleProgress
is a component that displays progress in a circular progress bar.
<CircleProgress.Root value={75} />
Usage
import { CircleProgress } from "@yamada-ui/react"
import { CircleProgress } from "@/components/ui"
import { CircleProgress } from "@workspaces/ui"
<CircleProgress.Root>
<CircleProgress.Label />
</CircleProgress.Root>
Change Variant
<Wrap gap="md">
<For each={["outline", "subtle"]}>
{(variant, index) => (
<CircleProgress.Root value={75} variant={variant} key={index} />
)}
</For>
</Wrap>
Change Size
<Wrap gap="md">
<For each={["xs", "sm", "md", "lg", "xl"]}>
{(size, index) => (
<CircleProgress.Root value={75} size={size} key={index} />
)}
</For>
</Wrap>
Alternatively, set a string or number to boxSize
.
<CircleProgress.Root boxSize="100px" value={31} />
Change Color Scheme
<Wrap gap="md">
<For each={["success", "warning"]}>
{(colorScheme, index) => (
<CircleProgress.Root value={75} colorScheme={colorScheme} key={index} />
)}
</For>
</Wrap>
Change Shape
<Wrap gap="md">
<For each={["rounded", "square"]}>
{(shape, index) => (
<CircleProgress.Root value={75} shape={shape} key={index} />
)}
</For>
</Wrap>
Apply Animation
Setting value
to null
will apply animation.
<CircleProgress.Root value={null} />
Change Animation Duration
Set a number to duration
.
<CircleProgress.Root duration={2} value={null} />
Change Thickness
To change the thickness of the progress bar, set a string or number to thickness
.
<CircleProgress.Root thickness={1} value={31} />
Add Label
<CircleProgress.Root value={75}>
<CircleProgress.Label>75%</CircleProgress.Label>
</CircleProgress.Root>
Change Color
<CircleProgress.Root rangeColor="red.500" trackColor="blue.500" value={31} />
Props
Accessibility
Currently, this section is being updated due to the migration of v2.