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

ProseTabs

원문 보기 위키 갱신

ProseTabs (본문 탭)

ProseTabs는 관련 콘텐츠를 상호작용 가능한 탭 인터페이스로 정리해주는 컴포넌트예요. MDC 문법으로 여러 탭을 만들어 코드·미리보기 같은 내용을 나란히 보여줄 수 있어요.

출처: Nuxt UI

본문

관련 콘텐츠를 상호작용 가능한 탭 인터페이스로 정리해요.

사용법 (Usage)

tabs와 tabs-item 컴포넌트로 콘텐츠 안에 Tabs를 표시할 수 있어요.

::tabs

:::tabs-item{label="Code" icon="i-lucide-code"}

```mdc
::callout
Lorem velit voluptate ex reprehenderit ullamco et culpa.
::
```

:::

:::tabs-item{label="Preview" icon="i-lucide-eye"}

::callout
Lorem velit voluptate ex reprehenderit ullamco et culpa.
::

:::

::

API

Props

/**
 * Props for the ProseProseTabs component
 */
interface ProseProseTabsProps {
  /**
   * The default tab to select.
   * @default '0'
   */
  defaultValue?: string | undefined;
  /**
   * Sync the selected tab with a local storage key.
   */
  sync?: string | undefined;
  /**
   * The hash to scroll to when the tab is selected.
   */
  hash?: string | undefined;
  ui?: { root?: SlotClass; } & { root?: SlotClass; list?: SlotClass; indicator?: SlotClass; trigger?: SlotClass; leadingIcon?: SlotClass; leadingAvatar?: SlotClass; leadingAvatarSize?: SlotClass; label?: SlotClass; trailingBadge?: SlotClass; trailingBadgeSize?: SlotClass; content?: SlotClass; } | undefined;
  modelValue?: string | undefined;
}

Slots

/**
 * Slots for the ProseTabs component
 */
interface ProseTabsSlots {
  default(): any;
}

테마 (Theme)

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

변경 기록 (Changelog)

컴포넌트와 테마의 커밋 히스토리를 확인해 보세요.

더 알아보기 (Learn more)