@a11y-kit/vue-tabs 中文文档教程
@a11y-kit/vue-tabs
一套无样式组件,可以是用于构建可访问的选项卡界面。 实现尽可能接近 WCAG 示例尽可能在 Vue 环境中友好地使用它。
Installation
yarn add @a11y-kit/vue-tabs
或
npm i @a11y-kit/vue-tabs
Usage
<template>
<TabWrapper v-model="activeTab">
<TabList label="Animals">
<TabActivator tab="dogs">Dogs</TabActivator>
<TabActivator tab="cats">Cats</TabActivator>
</TabList>
<TabPanel tab="dogs">
Dogs are pretty cool. Here's some info about them.
</TabPanel>
<TabPanel tab="cats">
Cats are pretty neat too. Here's some stuff about them!
</TabPanel>
</TabWrapper>
</template>
<script>
import { TabActivator, TabList, TabPanel, TabWrapper } from '@a11y-kit/vue-tabs'
export default {
components: { TabActivator, TabList, TabPanel, TabWrapper },
data() {
return {
activeTab: ''
}
}
}
</script>
@a11y-kit/vue-tabs
A suite of unstyled components which can be used to build an accessible tabs interface. The implementation is kept as close to the WCAG example as possible, while making it friendly to use in a Vue environment.
Installation
yarn add @a11y-kit/vue-tabs
or
npm i @a11y-kit/vue-tabs
Usage
<template>
<TabWrapper v-model="activeTab">
<TabList label="Animals">
<TabActivator tab="dogs">Dogs</TabActivator>
<TabActivator tab="cats">Cats</TabActivator>
</TabList>
<TabPanel tab="dogs">
Dogs are pretty cool. Here's some info about them.
</TabPanel>
<TabPanel tab="cats">
Cats are pretty neat too. Here's some stuff about them!
</TabPanel>
</TabWrapper>
</template>
<script>
import { TabActivator, TabList, TabPanel, TabWrapper } from '@a11y-kit/vue-tabs'
export default {
components: { TabActivator, TabList, TabPanel, TabWrapper },
data() {
return {
activeTab: ''
}
}
}
</script>
更多
你可能也喜欢
- 3shape-global-nav 中文文档教程
- 42-cent-paypal 中文文档教程
- 68kcounter 中文文档教程
- 7zip-standalone 中文文档教程
- @1amageek/open-graph-protocol 中文文档教程
- @21kb/react-online-status-hook 中文文档教程
- @2nthony/prettier-config 中文文档教程
- @42.nl/ui-core-loading-page 中文文档教程
- @4geit/rct-right-side-menu-component 中文文档教程
- @6river/graphql-google-pubsub 中文文档教程