ProseCard
ProseCard (Prose 카드)
강조된 콘텐츠 블록을 만드는 Prose 컴포넌트예요. 제목, 아이콘, 색상, 링크까지 지정할 수 있어요.
출처: Nuxt UI
본문
선택적인 링크와 내비게이션으로 강조된 콘텐츠 블록을 만들어요.
사용법
card 컴포넌트의 기본(default) 슬롯에 마크다운을 사용해서 콘텐츠를 강조할 수 있어요.
title, icon, color prop으로 커스터마이징할 수 있어요. 또한 <NuxtLink>이나 <RouterLink> 컴포넌트의 어떤 속성이든 전달할 수 있어요.
::card{title="Startup" icon="i-lucide-users" color="primary" to="https://nuxt.lemonsqueezy.com" target="_blank"}
Best suited for small teams, startups and agencies with up to 5 developers.
::
API
Props
/**
* Props for the ProseProseCard component
*/
interface ProseProseCardProps {
to?: string | it | et | undefined;
target?: null | "_blank" | "_parent" | "_self" | "_top" | string & {} | undefined;
icon?: any;
title?: string | undefined;
description?: string | undefined;
/**
* @default 'primary'
*/
color?: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral" | undefined;
ui?: { base?: SlotClass; icon?: SlotClass; title?: SlotClass; description?: SlotClass; externalIcon?: SlotClass; } | undefined;
}
Slots
/**
* Slots for the ProseCard component
*/
interface ProseCardSlots {
default(): any;
title(): any;
}
테마 (Theme)
export default defineAppConfig({
ui: {
prose: {}
}
})