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: {}
}
})