Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit bf827f4

Browse files
feat(c-skip-nav): build out example
1 parent 0f8181b commit bf827f4

File tree

2 files changed

+47
-3
lines changed

2 files changed

+47
-3
lines changed

packages/c-skip-nav/examples/base-c-skip-nav.vue

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<template>
2+
<c-box position="relative">
3+
<c-skip-nav-link> HELLO CSkipNav </c-skip-nav-link>
4+
<c-skip-nav-content>
5+
<main>
6+
<c-text>
7+
To test the SkipNav Components:
8+
<c-list mb="4">
9+
<c-list-item>
10+
<c-list-icon name="chevron-right" />
11+
Place focus on the below input
12+
</c-list-item>
13+
<c-list-item>
14+
<c-list-icon name="chevron-right" />
15+
Press <c-kbd>Shift + Tab</c-kbd> to make the
16+
<c-code>SkipNavLink</c-code> appear
17+
</c-list-item>
18+
<c-list-item>
19+
<c-list-icon name="chevron-right" />
20+
Hit <c-kbd>Enter</c-kbd>.
21+
</c-list-item>
22+
<c-list-item>
23+
<c-list-icon name="chevron-right" />
24+
You should now see the focus over all the content with a blue
25+
outline.
26+
</c-list-item>
27+
</c-list>
28+
</c-text>
29+
<label>Example Form Search</label>
30+
<CInput placeholder="Search" />
31+
</main>
32+
</c-skip-nav-content>
33+
</c-box>
34+
</template>
35+
<script lang="ts" setup>
36+
import {
37+
CBox,
38+
CCode,
39+
CInput,
40+
CKbd,
41+
CList,
42+
CListItem,
43+
CSkipNavContent,
44+
CSkipNavLink,
45+
CText,
46+
} from "@chakra-ui/vue-next"
47+
</script>

0 commit comments

Comments
 (0)