feat: add manual installation for components (#666)

This commit is contained in:
shadcn
2023-06-23 14:28:34 +04:00
committed by GitHub
parent 38fb9693d0
commit cf139e5fa1
50 changed files with 1660 additions and 243 deletions

View File

@@ -16,15 +16,37 @@ The `<Command />` component uses the [`cmdk`](https://cmdk.paco.me) component by
## Installation
<Steps>
<Tabs defaultValue="cli">
### Command
<TabsList>
<TabsTrigger value="cli">CLI</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">
```bash
npx shadcn-ui@latest add command
```
### Usage
</TabsContent>
<TabsContent value="manual">
<Steps>
<Step>Copy and paste the following code into your project.</Step>
<ComponentSource name="command" />
<Step>Update the import paths to match your project setup.</Step>
</Steps>
</TabsContent>
</Tabs>
## Usage
```tsx
import {
@@ -59,10 +81,6 @@ import {
</Command>
```
</Steps>
---
## Examples
### Dialog