Skip to content

Getting Started

Installation

First, ensure you have pnpm installed.

Usage

Add components directly using the CLI:

bash
# Initialize project
npx draft-cli init

# Add a Vue component
npx draft-cli vue add button

# Add a React component
npx draft-cli react add button

Configuration

Draft UI reuses the components.json configuration file, compatible with shadcn/ui.