Files
heroui-vue/apps/docs/demos/tabs-disabled.vue
T

38 lines
1010 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import {
Tabs,
TabsIndicator,
TabsList,
TabsListContainer,
TabsPanel,
TabsTab,
} from "@heroui-vue/components";
</script>
<template>
<Tabs class="w-full max-w-md">
<TabsListContainer>
<TabsList aria-label="含禁用项的标签页">
<TabsTab value="active">
启用
<TabsIndicator></TabsIndicator>
</TabsTab>
<TabsTab isDisabled value="disabled">
已禁用
<TabsIndicator></TabsIndicator>
</TabsTab>
<TabsTab value="available">
可用
<TabsIndicator></TabsIndicator>
</TabsTab>
</TabsList>
</TabsListContainer>
<TabsPanel class="pt-4" value="active">
<p>此标签页已启用,可以选择。</p>
</TabsPanel>
<TabsPanel class="pt-4" value="disabled"><p>无法访问此内容。</p></TabsPanel>
<TabsPanel class="pt-4" value="available">
<p>此标签页也可以选择。</p>
</TabsPanel>
</Tabs>
</template>