unovue / shadcn-vue

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

[Bug]: Resize component is missing a component (Direct export from index.ts) #761

Open aidan-galvia opened 2 months ago

aidan-galvia commented 2 months ago

Reproduction

npx shadcn-vue@latest add resizable

Describe the bug

After running npx shadcn-vue@latest add resizable, I noticed that this component is missing ResizablePanel.vue.

image

I also checked your github and this file is not found in the latest version, however the Wiki and MD state there should be a component ResizablePanel

System Info

System:
    OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (28) x64 Intel(R) Core(TM) i7-14700HX
    Memory: 17.80 GB / 31.03 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 18.19.0 - /usr/bin/node
    npm: 9.2.0 - /usr/bin/npm
  Browsers:
    Chrome: 128.0.6613.113

Contributes

sadeghbarati commented 2 months ago

ResizablePanel (shadcn-vue) or SplitterPanel (radix-vue) is directly exported from

https://github.com/radix-vue/shadcn-vue/blob/dev/apps/www/src/lib/registry/default/ui/resizable/index.ts#L3

If you are using Nuxt use shadcn-nuxt module to cover this case, or check manual module tab in this link and add those components with addComponent function

sadeghbarati commented 2 months ago

Related issues which component directly exports from index.ts because there was no need to write a wrapper around those components