컴포넌트

LoaderPercentage

숫자가 0에서 목표 퍼센트까지 카운트업되며 SVG 링이 함께 채워지는 로딩 인디케이터.

분류
컴포넌트
난이도
medium
변형
TS-TW

설치

npx shadcn@latest add https://gasan.ai.kr/tools/effect/r/LoaderPercentage-TS-TW

Props

이름타입기본값설명
targetnumber100카운트업이 도달할 목표 퍼센트(0~100).
durationnumber22000에서 target까지 걸리는 시간(ms).
sizenumber160링/숫자 지름(px).
strokeWidthnumber8진행 링의 두께(px).
accentColorstring"#C084FC"진행 링 그라디언트 시작 색상.
loopbooleantrue완료 후 다시 0부터 반복할지 여부.