production-evyos-systems-an.../ServicesWeb/install_schdui.sh

53 lines
882 B
Bash

# List of all components to install
components=(
"accordion"
"alert"
"alert-dialog"
"aspect-ratio"
"avatar"
"badge"
"button"
"calendar"
"card"
"checkbox"
"collapsible"
"combobox"
"command"
"context-menu"
"data-table"
"date-picker"
"dialog"
"dropdown-menu"
"form"
"hover-card"
"input"
"label"
"menubar"
"navigation-menu"
"popover"
"progress"
"radio-group"
"scroll-area"
"select"
"separator"
"sheet"
"skeleton"
"slider"
"sonner"
"switch"
"table"
"tabs"
"textarea"
"toast"
"toggle"
"tooltip"
)
# Loop and install each component, skipping prompts (to the extent allowed)
for component in "${components[@]}"; do
echo "Installing $component..."
npx --legacy-peer-deps shadcn@latest add "$component" -y || true
done
echo "✅ Next.js with TypeScript and all shadcn components installed successfully!"