Skip to content

Commit f974f95

Browse files
committed
docs(home): make composables clickable
Link each composable chip to its documentation page, matching the behavior of the components section.
1 parent bb56e68 commit f974f95

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

apps/docs/src/components/home/HomeEcosystem.vue

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@
1111
]
1212
1313
const composables = [
14-
{ name: 'useSelection', category: 'Selection' },
15-
{ name: 'useGroup', category: 'Selection' },
16-
{ name: 'useSingle', category: 'Selection' },
17-
{ name: 'useStep', category: 'Selection' },
18-
{ name: 'useTheme', category: 'Plugins' },
19-
{ name: 'useBreakpoints', category: 'Plugins' },
20-
{ name: 'useLocale', category: 'Plugins' },
21-
{ name: 'useStorage', category: 'Plugins' },
22-
{ name: 'useRegistry', category: 'Registration' },
23-
{ name: 'useTokens', category: 'Registration' },
24-
{ name: 'usePagination', category: 'Selection' },
25-
{ name: 'useFilter', category: 'Selection' },
26-
{ name: 'useForm', category: 'Forms' },
27-
{ name: 'useVirtual', category: 'System' },
28-
{ name: 'createContext', category: 'Foundation' },
14+
{ name: 'createSelection', to: '/composables/selection/create-selection', category: 'Selection' },
15+
{ name: 'createGroup', to: '/composables/selection/create-group', category: 'Selection' },
16+
{ name: 'createSingle', to: '/composables/selection/create-single', category: 'Selection' },
17+
{ name: 'createStep', to: '/composables/selection/create-step', category: 'Selection' },
18+
{ name: 'useTheme', to: '/composables/plugins/use-theme', category: 'Plugins' },
19+
{ name: 'useBreakpoints', to: '/composables/plugins/use-breakpoints', category: 'Plugins' },
20+
{ name: 'useLocale', to: '/composables/plugins/use-locale', category: 'Plugins' },
21+
{ name: 'useStorage', to: '/composables/plugins/use-storage', category: 'Plugins' },
22+
{ name: 'createRegistry', to: '/composables/registration/create-registry', category: 'Registration' },
23+
{ name: 'createTokens', to: '/composables/registration/create-tokens', category: 'Registration' },
24+
{ name: 'usePagination', to: '/composables/utilities/use-pagination', category: 'Utilities' },
25+
{ name: 'useFilter', to: '/composables/utilities/use-filter', category: 'Utilities' },
26+
{ name: 'createForm', to: '/composables/forms/create-form', category: 'Forms' },
27+
{ name: 'useVirtual', to: '/composables/utilities/use-virtual', category: 'Utilities' },
28+
{ name: 'createContext', to: '/composables/foundation/create-context', category: 'Foundation' },
2929
]
3030
</script>
3131

@@ -88,14 +88,15 @@
8888
</div>
8989

9090
<div class="grid grid-cols-2 md:flex md:flex-wrap gap-3">
91-
<div
91+
<router-link
9292
v-for="composable in composables"
9393
:key="composable.name"
94-
class="composable-chip px-4 py-2 rounded-lg border bg-surface hover:bg-surface/50 transition-colors"
94+
class="composable-chip px-4 py-2 rounded-lg border bg-surface hover:bg-surface/50 hover:border-primary/50 transition-colors"
95+
:to="composable.to"
9596
>
9697
<span class="font-mono text-sm">{{ composable.name }}</span>
9798
<span class="text-xs opacity-60 ml-2 hidden sm:inline">{{ composable.category }}</span>
98-
</div>
99+
</router-link>
99100

100101
<router-link
101102
class="composable-chip px-4 py-2 rounded-lg border bg-surface hover:bg-surface/50 hover:border-primary/50 transition-colors"

0 commit comments

Comments
 (0)