feat: migrate ScrollShadow and Tabs with docs and keyboard support
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<script setup lang="ts">
|
||||
import { ScrollShadow } from "@heroui-vue/components";
|
||||
const entries = [
|
||||
"与设计团队一起回顾季度目标。",
|
||||
"将深色模式设计令牌发布到生产环境。",
|
||||
"合并表单字段的无障碍修复。",
|
||||
"发布更新后的组件文档。",
|
||||
"安排下一冲刺的性能审计。",
|
||||
"在文档站点中添加滚动阴影示例。",
|
||||
];
|
||||
</script>
|
||||
<template>
|
||||
<div class="w-full sm:max-w-sm">
|
||||
<ScrollShadow
|
||||
hideScrollBar
|
||||
class="max-h-48 rounded-xl border border-border/80 bg-linear-to-b from-neutral-50/90 to-white p-4 ring-1 ring-black/5 dark:from-neutral-900/80 dark:to-neutral-900 dark:ring-white/10"
|
||||
:size="48"
|
||||
variant="fade"
|
||||
>
|
||||
<div class="space-y-3">
|
||||
<template :key="entry" v-for="entry in entries">
|
||||
<p
|
||||
class="text-sm leading-relaxed text-neutral-600 dark:text-neutral-400"
|
||||
>
|
||||
{{ entry }}
|
||||
</p>
|
||||
</template>
|
||||
</div>
|
||||
</ScrollShadow>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user