본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

원형 진행바

원문 보기 위키 갱신

원형 진행바 (CircleProgress)

진행 상황을 원 모양으로 보여 주는 진행바 컴포넌트예요. progress 값만 바꿔 주면 되고, 두께·반지름·색상·시계 방향 여부까지 원하는 대로 조절할 수 있어요.

출처: 문서

설치 (Install)

import { createApp } from 'vue'
import { CircleProgress } from '@nutui/nutui'

const app = createApp()
app.use(CircleProgress)

사용 예제 (Usage)

기본 사용법 (Basic Usage)

demo: circleprogress basic

너비 커스텀 (Custom Width)

demo: circleprogress width

색상 커스텀 (Custom Color)

demo: circleprogress color

크기 커스텀 (Custom Size)

demo: circleprogress size

내용 커스텀 (Custom Content)

demo: circleprogress content

동적으로 값 바꾸기 (Dynamic Change)

demo: circleprogress change

API

Props

Attribute Description Type Default
progress Progress Rate number | string 0
stroke-width Stroke width number | string 5
radius radius number | string 50
color Progress color, passing object to render gradient object | string #fa2c19
path-color Track Color string #d9d9d9
stroke-linecap Stroke linecap, can be set to square butt String round
clockwise Whether to be clockwise boolean true

Slots

Name Description
default Custom Content

Types v4.3.3

이 컴포넌트는 다음 타입 정의를 함께 내보내요:

import type {
  CircleProgressStrokeLinecap,
  CircleProgressProps,
  CircleProgressInstance
} from '@nutui/nutui';

테마 (Theming)

CSS 변수 (CSS Variables)

컴포넌트는 스타일을 커스터마이징할 때 쓸 수 있는 CSS 변수를 제공해요. 자세한 사용법은 ConfigProvider 컴포넌트 문서를 참고하세요.

Name Default Value
--nut-circleprogress-primary-color var(--nut-primary-color)
--nut-circleprogress-path-color #e5e9f2
--nut-circleprogress-text-color #000000
--nut-circleprogress-text-size var(--nut-font-size-3)

더 알아보기 (Learn more)

이 글은 NutUI 공식 문서의 영문 원문을 한국어로 번역한 내용이에요. 최신 내용과 전체 문서는 아래 링크에서 확인할 수 있어요: