Skip to content

CLI command does not install the same version it is referred in github #1217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
calebeaires opened this issue Apr 27, 2025 · 2 comments
Open

Comments

@calebeaires
Copy link

Using this cli command

bunx --bun shadcn-vue@latest add command

Everything works fine, I can install, but the version installed is a little different of the one at the github. The version at github is

    <ListboxFilter
      v-bind="{ ...forwardedProps, ...$attrs }"
      v-model="filterState.search"
      auto-focus
      :class="cn('flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50', props.class)"
    />

but the version I've got installed is (main differences at css/tailwind)

<ListboxFilter
      v-bind="{ ...forwardedProps, ...$attrs }"
      v-model="filterState.search"
      data-slot="command-input"
      auto-focus
      :class="cn('placeholder:text-muted-foreground flex h-12 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50', props.class)"
    />

Why I cant install the github version?

@mcrio
Copy link

mcrio commented May 10, 2025

Latest seems to be pulling the Tailwind4 based components that are located in the v4 folder.
#1236
The docs seem to be still pointing to the old ones and I'm not sure why the styling difference, maybe some mistake during migration.

@mcrio
Copy link

mcrio commented May 10, 2025

..but still the styling on the v4 components is different. For example the Input has text-base md:text-sm while the previous does not have font size variations.

It seems that the style updates got carried over from the main shadcn project as they introduced the same changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants