BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ak-ui/button

AK Button

ak-ui/button
FreeComponent

Arknights-inspired action button with composable variants and slots.

Install it

npx shadcn@latest add https://ak-ui.yunyoujun.cn/r/button.json

Source

registry/ak/ui/button/AkButton.vueak-ui.yunyoujun.cn/r/button.json
1<script setup lang="ts">
2import type { AkButtonVariant } from './types'
3
4import '@yunyoujun/ak-ui'
5
6withDefaults(defineProps<{
7 block?: boolean
8 variant?: AkButtonVariant
9}>(), {
10 block: false,
11 variant: 'default',
12})
13</script>
14
15<template>
16 <button
17 type="button"
18 data-slot="ak-button"
19 :data-variant="variant"
20 :class="[
21 'ak-button',
22 variant !== 'default' && `ak-button--${variant}`,
23 { 'ak-button--block': block },
24 ]"
25 >
26 <span v-if="$slots.icon" class="ak-button__icon" data-icon="inline-start">
27 <slot name="icon" />
28 </span>
29 <span class="ak-button__label">
30 <slot />
31 </span>
32 </button>
33</template>

What it pulls in

npm packages

  • @yunyoujun/ak-ui@0.2.0

Files it writes

  • registry/ak/ui/button/AkButton.vue
  • registry/ak/ui/button/index.ts
  • registry/ak/ui/button/types.ts

Facts

Registry
ak-ui
Type
registry:ui
Access
Free
Files written
3
Licence
MIT
First indexed
2026-08-02
Last confirmed
2 days ago

Go to the source

ak-ui.yunyoujun.cn YunYouJun/ak-ui on GitHub Raw registry item This item as JSON

More from ak-ui

All 7 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AK Cardcardak-uiComponentsFree1 dep · 8 files
AK Input Numberinput-numberak-uiComponentsFree1 dep · 2 files
AK Noticenoticeak-uiComponentsFree1 dep · 3 files
AK Progressprogressak-uiComponentsFree1 dep · 4 files
AK Statusstatusak-uiComponentsFree1 dep · 4 files
AK Tabstabsak-uiComponentsFree1 dep · 4 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex