AK Card
ak-ui/cardFreeComponent
Composable Arknights-inspired card with header, title, description, content, and footer primitives.
Install it
npx shadcn@latest add https://ak-ui.yunyoujun.cn/r/card.jsonSource
1<script setup lang="ts">2import type { AkCardVariant } from './types'34import '@yunyoujun/ak-ui'56withDefaults(defineProps<{7 as?: string8 variant?: AkCardVariant9}>(), {10 as: 'div',11 variant: 'default',12})13</script>1415<template>16 <component17 :is="as"18 data-slot="ak-card"19 :data-variant="variant"20 :class="[21 'ak-card',22 variant !== 'default' && `ak-card--${variant}`,23 ]"24 >25 <slot />26 </component>27</template>
What it pulls in
npm packages
Files it writes
More from ak-ui
All 7 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| AK Buttonbutton | ak-ui | Components | Free | 1 dep · 3 files | |
| AK Input Numberinput-number | ak-ui | Components | Free | 1 dep · 2 files | |
| AK Noticenotice | ak-ui | Components | Free | 1 dep · 3 files | |
| AK Progressprogress | ak-ui | Components | Free | 1 dep · 4 files | |
| AK Statusstatus | ak-ui | Components | Free | 1 dep · 4 files | |
| AK Tabstabs | ak-ui | Components | Free | 1 dep · 4 files |
