Relative Content

Tag Archive for reactjsshadcnui

onSelect not working on commandInput of shadcn

I am using shadcn for a React.js proyect of my own. I am trying to create a component with Popover and Command, Command items components from shadcn. However the onSelect inside the CommandItem are not working. The items are grayed out and I can select them. The last CommandItem (Create Store) is selected by default and if I click enter the modal do open but I can get it to work when clicking and I can’t change options.

Shadcn initialization issue with Vite React

I’m installing shadcn in a React application with Vite, but when following the steps in their documentation, the components are placed inside the @ directory, and I can’t use them.