UNPKG

hextaui

Version:

Build stunning websites effortlessly. HextaUI CLI tool to easily install components for Next.js, Vite, and Astro projects.

161 lines (119 loc) • 2.9 kB
# HextaUI CLI A command-line tool for adding customizable UI components to Next.js, Vite, and Astro projects. [![npm version](https://badge.fury.io/js/hextaui.svg)](https://badge.fury.io/js/hextaui) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) ## šŸš€ Quick Start ```bash # Initialize HextaUI npx hextaui@latest init # Add components npx hextaui add Button Card Input # Interactive mode npx hextaui add ``` ## šŸ“¦ Installation Run without installation using npx: ```bash npx hextaui@latest init ``` ## šŸ› ļø Usage ### Initialize Project ```bash npx hextaui init ``` Automatically detects your framework and creates: - `src/components/ui/` for components - `src/lib/utils.ts` for utilities - Configures project for HextaUI - Framework-specific setup instructions ### Add Components ```bash # Add specific components npx hextaui add Button Card # Interactive selection npx hextaui add ``` Options: - `--deps`: Auto-install dependencies - `--no-deps`: Skip dependency installation - `--fast`: Manual dependency copying ### List Components ```bash npx hextaui list ``` ## šŸŽØ Components - Button - Card - Input - Label - Avatar - Separator - Tooltip - Breadcrumb - Kbd - Accordion - Alert - Badge - Calendar - Checkbox - Chip - ColorPicker - CommandMenu - DatePicker - Drawer - DropdownMenu - FileUpload - InputOTP - Loader - MenuBar - Modal - Pagination - Progress - Radio - ScrollArea ## āš™ļø Requirements - **Next.js**: 13+ with React 18+ - **Vite**: Latest version with React 18+ - **Astro**: Latest version with React integration - **All frameworks**: Tailwind CSS v4 and Node.js 16+ ## šŸŽÆ Supported Frameworks ### Next.js - Full support for App Router and Pages Router - Automatic CSS injection into global styles - TypeScript path aliases configuration ### Vite + React - Automatic alias configuration guide - Support for all Vite React templates - TypeScript integration ### Astro - React integration setup instructions - Tailwind CSS configuration - TypeScript support with path aliases ## šŸ“ Project Structure ```text src/ ā”œā”€ā”€ components/ │ └── ui/ │ ā”œā”€ā”€ button/ │ ā”œā”€ā”€ card/ │ └── ... └── lib/ ā”œā”€ā”€ utils.ts └── color-utils.ts ``` ## šŸ”§ Commands ```bash npx hextaui init # Initialize project npx hextaui add Button Card # Add components npx hextaui add --deps # Auto-install dependencies npx hextaui add --fast # Fast mode npx hextaui list # List components ``` ## 🌐 Links - [Homepage](https://hextaui.com) - [Documentation](https://docs.hextaui.com) - [GitHub](https://github.com/preetsuthar17/cli) - [Issues](https://github.com/preetsuthar17/cli/issues) ## šŸ“„ License MIT License Built with ā¤ļø by [Preet Suthar](https://github.com/preetsuthar17)