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

ProseSteps

원문 보기 위키 갱신

ProseSteps (단계형 목록)

ProseSteps 컴포넌트는 제목(heading)을 번호가 매겨진 단계별 가이드와 튜토리얼로 바꿔 주는 타입그래피 컴포넌트예요.

출처: Nuxt UI

본문

제목을 Steps 컴포넌트로 감싸면 단계 목록으로 표시돼요.

level prop을 사용해 어떤 제목을 단계로 사용할지 지정할 수 있어요.

::steps{level="4"}

#### Add the Nuxt UI module in your `nuxt.config.ts`

```ts [nuxt.config.ts]
export default defineNuxtConfig({
  modules: ['@nuxt/ui']
})
```

#### Import Tailwind CSS in your CSS

```css [app/assets/css/main.css]
@import "tailwindcss";
```

#### Start your development server

```bash
npm run dev
```

::

API

Props

/**
 * Props for the ProseProseSteps component
 */
interface ProseProseStepsProps {
  /**
   * The heading level to apply to the steps.
   * @default '3'
   */
  level?: "3" | "2" | "4" | undefined;
  ui?: { base?: any; } | undefined;
}

Slots

/**
 * Slots for the ProseSteps component
 */
interface ProseStepsSlots {
  default(): any;
}

테마 (Theme)

export default defineAppConfig({
  ui: {
    prose: {}
  }
})

변경 로그 (Changelog)

컴포넌트와 테마의 커밋 기록을 확인해 보세요.

더 알아보기 (Learn more)