ProseAccordion
ProseAccordion (본문 아코디언)
ProseAccordion은 문서 콘텐츠 안에서 접고 펼 수 있는 콘텐츠 섹션을 만들어 정보를 더 잘 정리해주는 컴포넌트예요. MDC 문법으로 쉽게 사용할 수 있어요.
출처: Nuxt UI
본문
더 나은 정보 구성을 위해 접고 펼 수 있는 콘텐츠 섹션을 만들어요.
사용법 (Usage)
accordion과 accordion-item 컴포넌트로 콘텐츠 안에 Accordion을 표시할 수 있어요.
::accordion
---
defaultValue:
- '1'
---
::accordion-item{label="Is Nuxt UI free to use?" icon="i-lucide-circle-help"}
Yes! Nuxt UI is completely free and open source under the MIT license. All 125+ components are available to everyone.
::
::accordion-item{label="Can I use Nuxt UI with Vue without Nuxt?" icon="i-lucide-circle-help"}
Yes! While optimized for Nuxt, Nuxt UI works perfectly with standalone Vue projects via our Vite plugin. You can follow the [installation guide](/docs/getting-started/installation/vue) to get started.
::
::accordion-item{label="Is Nuxt UI production-ready?" icon="i-lucide-circle-help"}
Yes! Nuxt UI is used in production by thousands of applications with extensive tests, regular updates, and active maintenance.
::
::
API
Props
/**
* Props for the ProseProseAccordion component
*/
interface ProseProseAccordionProps {
/**
* @default 'multiple'
*/
type?: "multiple" | "single" | undefined;
ui?: { root?: SlotClass; trigger?: SlotClass; } & { root?: SlotClass; item?: SlotClass; header?: SlotClass; trigger?: SlotClass; content?: SlotClass; body?: SlotClass; leadingIcon?: SlotClass; trailingIcon?: SlotClass; label?: SlotClass; } | undefined;
}
Slots
/**
* Slots for the ProseAccordion component
*/
interface ProseAccordionSlots {
default(): any;
}
테마 (Theme)
export default defineAppConfig({
ui: {
prose: {}
}
})