feat: add Separator Kbd and Chip components
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<script setup lang="ts">
|
||||
import { Chip, ChipLabel } from "@heroui-vue/components";
|
||||
import {
|
||||
IconBan,
|
||||
IconCheck,
|
||||
IconCircleFilled,
|
||||
IconInfoCircle,
|
||||
IconAlertTriangle,
|
||||
} from "@tabler/icons-vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-col gap-4">
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<Chip variant="primary">
|
||||
<IconCircleFilled :size="6" aria-hidden="true" />
|
||||
<ChipLabel>默认</ChipLabel>
|
||||
</Chip>
|
||||
<Chip color="success" variant="primary">
|
||||
<IconCircleFilled :size="6" aria-hidden="true" />
|
||||
<ChipLabel>活跃</ChipLabel>
|
||||
</Chip>
|
||||
<Chip color="warning" variant="primary">
|
||||
<IconCircleFilled :size="6" aria-hidden="true" />
|
||||
<ChipLabel>待处理</ChipLabel>
|
||||
</Chip>
|
||||
<Chip color="danger" variant="primary">
|
||||
<IconCircleFilled :size="6" aria-hidden="true" />
|
||||
<ChipLabel>未激活</ChipLabel>
|
||||
</Chip>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<Chip>
|
||||
<IconInfoCircle :size="12" aria-hidden="true" />
|
||||
<ChipLabel>新功能</ChipLabel>
|
||||
</Chip>
|
||||
<Chip color="success">
|
||||
<IconCheck :size="12" aria-hidden="true" />
|
||||
<ChipLabel>可用</ChipLabel>
|
||||
</Chip>
|
||||
<Chip color="warning">
|
||||
<IconAlertTriangle :size="12" aria-hidden="true" />
|
||||
<ChipLabel>测试版</ChipLabel>
|
||||
</Chip>
|
||||
<Chip color="danger">
|
||||
<IconBan :size="12" aria-hidden="true" />
|
||||
<ChipLabel>已弃用</ChipLabel>
|
||||
</Chip>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user