Skip to content

Commit

Permalink
progress circle interface
Browse files Browse the repository at this point in the history
  • Loading branch information
malangcat committed Oct 10, 2024
1 parent c96ff28 commit 0f389e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion component-docs/snippets/component/progress-circle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const ProgressCircle = React.forwardRef<HTMLDivElement, ProgressCirclePro
value = 0,
maxValue = 100,
minValue = 0,
indeterminate,
indeterminate = false,
...otherProps
},
ref,
Expand Down
4 changes: 2 additions & 2 deletions component-docs/src/components/ProgressCircle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ProgressCircle: React.FC = (props: ProgressCircleProps) => {
const duration = useProgressCircleDuration();
const easing = useProgressCircleEasing();

const { size = "medium", variant = "determinate" } = props;
const { size = "medium", indeterminate = false } = props;

return (
<div
Expand All @@ -32,7 +32,7 @@ export const ProgressCircle: React.FC = (props: ProgressCircleProps) => {
>
<UIProgressCircle
size={size}
variant={variant}
indeterminate={indeterminate}
value={value}
minValue={minValue}
maxValue={maxValue}
Expand Down
11 changes: 6 additions & 5 deletions component-docs/src/pages/components/progress-circle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ import { ProgressCircleControls } from '@/src/components/ProgressCircleControls'

# Progress Circle

## 예제

### indeterminate

<ProgressCircle size="medium" variant="indeterminate" />
<ProgressCircle size="small" variant="indeterminate" />
<ProgressCircle size="medium" indeterminate />
<ProgressCircle size="small" indeterminate />

### determinate

<ProgressCircle size="medium" variant="determinate" value={1} />
<ProgressCircle size="small" variant="determinate" value={50} />

<ProgressCircle size="medium" value={1} />
<ProgressCircle size="small" value={50} />
<ProgressCircleControls />

0 comments on commit 0f389e1

Please sign in to comment.