N
Nuxt3mo ago
Wazbat

Nuxt ui types

Are the nuxt ui package types exported anywhere from the downloaded packages? I was able to find them in the github repo but No matter what I try I'm unable to import them from the built packages https://github.com/nuxt/ui/blob/dev/src/runtime/types/dropdown.d.ts Is there any way to get these types in my app without having to copy paste them from here?
GitHub
ui/src/runtime/types/dropdown.d.ts at dev · nuxt/ui
A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS. - nuxt/ui
4 Replies
Samu
Samu3mo ago
Hello, you can do this : import type { DropdownItem } from '#ui/types' and for nuxt ui pro, it is @nuxt/ui-pro/types
Ralph
Ralph3mo ago
I get a runtime error when I use them in vue scripts
Samu
Samu3mo ago
strange
Samu
Samu3mo ago
https://ui.nuxt.com/components/form for example it is used here
Nuxt UI
Form - Nuxt UI
Collect and validate form data.
Want results from more Discord servers?
Add your server
More Posts