문서 탐색

UIStepper

여러 단계로 이루어진 흐름에서 현재 위치를 표시합니다.

기본 사용법

여러 단계 사이를 이동

items로 단계의 이름과 설명을 전달합니다. 기본 이전과 다음 버튼으로 이동하면 현재 단계의 설명이 표시됩니다.

배송 주소와 수령 방법을 확인합니다.

<script setup lang="ts">
import { UIStepper } from "@connextable/ui";
import { ref } from "vue";

const steps = [
  { value: "account", label: "계정", description: "주문 연락처를 확인합니다." },
  {
    value: "delivery",
    label: "배송",
    description: "배송 주소와 수령 방법을 확인합니다.",
  },
  { value: "payment", label: "결제", description: "결제 방법을 선택합니다." },
  { value: "review", label: "확인", description: "주문 내용을 확인합니다." },
];
const current = ref("delivery");
</script>

<template>
  <UIStepper v-model="current" :items="steps" label="주문 진행" />
</template>

설정과 동작

단계 이름 옆 아이콘

items의 icon을 지정해 배송과 결제 단계를 구분합니다.

완료한 단계 표시

단계 이름 옆에 완료 및 현재 상태를 표시합니다.

진입할 수 없는 단계

검토 단계를 비활성화합니다.

세로 단계 목록

세로 목록에서 서로 다른 단계를 선택합니다.

구성 컴포넌트

구조와 배치

UIStepperList

관련 항목을 한 목록으로 묶습니다.

완료한 단계 표시 예제
UIStepperStep

지정한 단계의 이름과 이동 동작을 연결합니다.

완료한 단계 표시 예제
UIStepperContent

트리거 또는 현재 값에 연결된 콘텐츠를 담습니다.

완료한 단계 표시 예제

탐색과 동작

UIStepperPrevious

직전 항목, 단계 또는 페이지로 이동합니다.

완료한 단계 표시 예제
UIStepperNext

다음 항목, 단계 또는 페이지로 이동합니다.

완료한 단계 표시 예제

값과 상태 표시

UIStepperIndicator

완료 또는 진행 중 같은 단계 상태를 표시합니다.

완료한 단계 표시 예제

주요 API

속성과 모델

v-model타입string | undefined

현재 단계의 식별자입니다.

단계 이름 옆 아이콘 예제
items[].icon타입Component

이름 앞에 표시할 Vue 아이콘 컴포넌트입니다.

단계 이름 옆 아이콘 예제
items타입readonly (string | TabbedItem)[]

단계의 value, label, description과 disabled를 지정합니다. icon은 단계 이름 옆에 표시합니다.

단계 이름 옆 아이콘 예제

슬롯

#panel타입(state: { item: TabbedItem; }) => VNodeChild

현재 단계의 item으로 설명 영역을 직접 구성합니다.

전체 속성, 이벤트와 슬롯

UIStepper

as
PrimitiveAs | undefined
as-child
boolean | undefined
disabled
boolean | undefined
model-value
string | undefined
default-value
string | undefined
readonly
boolean | undefined
@update:model-value
(_value: string) => any
orientation
"horizontal" | "vertical" | undefined
@highlight
(_value: string | null) => any
disabled-items
readonly string[] | undefined
@activate
(_value: string) => any
items필수
readonly (string | TabbedItem)[]
label
string | undefined
#default
(props: TabsRootSlotProps) => VNodeChild
#panel
(state: { item: TabbedItem; }) => VNodeChild

UIStepperList

label
string | undefined
as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
() => VNodeChild

UIStepperStep

disabled
boolean | undefined
as
PrimitiveAs | undefined
as-child
boolean | undefined
value필수
string
#default
(props: TabsTriggerSlotProps) => VNodeChild

UIStepperContent

force-present
boolean | undefined
as
PrimitiveAs | undefined
as-child
boolean | undefined
value필수
string
#default
(props: TabsContentSlotProps) => VNodeChild

UIStepperIndicator

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: { value: string; }) => VNodeChild

UIStepperPrevious

disabled
boolean | undefined
as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: StepperActionSlotProps) => VNodeChild

UIStepperNext

disabled
boolean | undefined
as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: StepperActionSlotProps) => VNodeChild