radix-vue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
4.55k stars 261 forks source link

Select not displaying properly #624

Closed ezekel closed 3 months ago

ezekel commented 3 months ago

I am using Laravel Jetstream + inertia + Vue, I created a simple select dropdown but it did not display properly

Node -v v22.3.0

OS "Debian GNU/Linux 12 (bookworm)

image

<script setup lang="ts">

import {
    Select,
    SelectContent,
    SelectGroup,
    SelectItem,
    SelectLabel,
    SelectTrigger,
    SelectValue,
} from '@/components/ui/select'
</script>
<template>
    <Select>
        <SelectTrigger class="w-[180px]">
            <SelectValue placeholder="Select a fruit" />
        </SelectTrigger>
        <SelectContent>
            <SelectGroup>
                <SelectLabel>Fruits</SelectLabel>
                <SelectItem value="apple">
                    Apple
                </SelectItem>
                <SelectItem value="banana">
                    Banana
                </SelectItem>
                <SelectItem value="blueberry">
                    Blueberry
                </SelectItem>
                <SelectItem value="grapes">
                    Grapes
                </SelectItem>
                <SelectItem value="pineapple">
                    Pineapple
                </SelectItem>
            </SelectGroup>
        </SelectContent>
    </Select>
</template>

Thank you in advance

sadeghbarati commented 3 months ago

Can you share your inertia projects and also your tailwind config?

ezekel commented 3 months ago

Sorry it's working now I just re-installed the inertia and shadcnvue