Skip to content

Commit

Permalink
docs(www): add radix-ui deps install (shadcn-ui#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadcn authored and suleymanbariseser committed Jul 25, 2023
1 parent 313d79a commit 6478682
Show file tree
Hide file tree
Showing 29 changed files with 177 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/accordion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ module.exports = {

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-accordion
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="accordion" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/alert-dialog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ npx shadcn-ui@latest add alert-dialog

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-alert-dialog
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="alert-dialog" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/aspect-ratio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add aspect-ratio

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-aspect-ratio
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="aspect-ratio" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/avatar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add avatar

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-avatar
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="avatar" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ npx shadcn-ui@latest add button

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-slot
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="button" />
Expand Down
10 changes: 10 additions & 0 deletions apps/www/content/docs/components/calendar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ npx shadcn-ui@latest add calendar

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install react-day-picker date-fns
```

<Step>Add the `Button` component to your project.</Step>

The `Calendar` component uses the `Button` component. Make sure you have it installed in your project.

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="calendar" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/checkbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add checkbox

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-checkbox
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="checkbox" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/collapsible.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ npx shadcn-ui@latest add collapsible

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-collapsible
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="collapsible" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/command.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ npx shadcn-ui@latest add command

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install cmdk
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="command" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/context-menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add context-menu

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-context-menu
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="context-menu" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/dialog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ npx shadcn-ui@latest add dialog

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-dialog
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="dialog" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/dropdown-menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ npx shadcn-ui@latest add dropdown-menu

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-dropdown-menu
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="dropdown-menu" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/hover-card.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ npx shadcn-ui@latest add hover-card

<TabsContent value="manual">

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-hover-card
```

<Steps>

<Step>Copy and paste the following code into your project.</Step>
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/label.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add label

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-label
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="label" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/menubar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add menubar

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-menubar
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="menubar" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/navigation-menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add navigation-menu

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-navigation-menu
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="navigation-menu" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/popover.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add popover

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-popover
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="popover" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/progress.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add progress

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-progress
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="progress" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/radio-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add radio-group

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-radio-group
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="radio-group" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/scroll-area.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add scroll-area

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-scroll-area
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="scroll-area" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/select.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ npx shadcn-ui@latest add select

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-select
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="select" />
Expand Down
5 changes: 5 additions & 0 deletions apps/www/content/docs/components/separator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ npx shadcn-ui@latest add separator
<TabsContent value="manual">

<Steps>
<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-separator
```

<Step>Copy and paste the following code into your project.</Step>

Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/sheet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add sheet

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-dialog
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="sheet" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/slider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add slider

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-slider
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="slider" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/switch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add switch

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-switch
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="switch" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/tabs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add tabs

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-tabs
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="tabs" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/toast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ export default function RootLayout({ children }) {

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-toast
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="toast" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/toggle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add toggle

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-toggle
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="toggle" />
Expand Down
6 changes: 6 additions & 0 deletions apps/www/content/docs/components/tooltip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ npx shadcn-ui@latest add tooltip

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @radix-ui/react-tooltip
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="tooltip" />
Expand Down

0 comments on commit 6478682

Please sign in to comment.