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
Hello, you can do this : import type { DropdownItem } from '#ui/types'
and for nuxt ui pro, it is @nuxt/ui-pro/types
I get a runtime error when I use them in vue scripts
strange
https://ui.nuxt.com/components/form for example it is used here