Skip to content

Commit

Permalink
docs(app): update module & framework select
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Dec 5, 2024
1 parent 46f4e5a commit 6f1f9f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion docs/app/components/FrameworkSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ onMounted(() => {
:items="frameworks"
:content="false"
color="neutral"
:ui="{ leadingIcon: 'group-data-[state=inactive]:grayscale' }"
:ui="{
indicator: 'bg-[var(--ui-bg)]',
trigger: 'px-1 data-[state=active]:text-[var(--ui-text-highlighted)]'
}"
@update:model-value="(framework = $event as string)"
/>
</template>
2 changes: 1 addition & 1 deletion docs/app/components/ModuleSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ onMounted(() => {
:items="modules"
:content="false"
color="neutral"
:ui="{ trigger: 'px-1' }"
:ui="{ indicator: 'bg-[var(--ui-bg)]', trigger: 'px-1 data-[state=active]:text-[var(--ui-text-highlighted)]' }"
@update:model-value="(module = $event as string)"
/>
</template>
4 changes: 2 additions & 2 deletions docs/app/composables/useSharedData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ export function useSharedData() {
const framework = useCookie('nuxt-ui-framework', { default: () => 'nuxt' })
const frameworks = computed(() => [{
label: 'Nuxt',
icon: 'i-logos-nuxt-icon',
icon: 'i-simple-icons-nuxtdotjs',
value: 'nuxt',
onSelect: () => framework.value = 'nuxt'
}, {
label: 'Vue',
icon: 'i-logos-vue',
icon: 'i-simple-icons-vuedotjs',
value: 'vue',
disabled: module.value === 'ui-pro',
onSelect: () => framework.value = 'vue'
Expand Down

0 comments on commit 6f1f9f4

Please sign in to comment.