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
Markdown
# HextaUI CLI
A command-line tool for adding customizable UI components to Next.js, Vite, and Astro projects.
[](https://badge.fury.io/js/hextaui)
[](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)