This repository provides scripts to automatically install a list of shadcn/ui
components. Both Windows (.bat) and Unix (.sh) scripts are provided for convenience.
The following components are installed by the scripts:
accordionalertalert-dialogaspect-ratioavatarbadgebuttoncalendarcardcheckboxcollapsiblecomboboxcommandcontext-menudata-tabledate-pickerdialogdropdown-menuformhover-cardinputlabelmenubarnavigation-menupopoverprogressradio-groupscroll-areaselectseparatorsheetskeletonsliderswitchtabletabstextareatoasttoggletooltip
Ensure the script has execute permissions
chmod +x install-components.shRun the script
./install-components.shSimply double-click the install-components.bat file or run it through the command prompt:
install-components.bat- Before running these scripts, initialize shadcn-ui in your project with:
npx shadcn-ui@latest init. - Ensure you have npx installed and available in your system's PATH.
- The scripts need to be in the same project folder where you want the shadcn-ui components to be installed.
- The scripts will automatically answer "yes" to any prompts from the shadcn-ui installer.
- It's recommended to run these scripts in a new or isolated project directory to avoid potential conflicts with existing setups.
If you find any issues or wish to add more features, feel free to open an issue or submit a pull request. Your contributions are welcome!