docs(www): add radix-ui deps install (#827)

This commit is contained in:
shadcn
2023-07-04 12:01:50 +04:00
committed by GitHub
parent cbe0f1959c
commit b4dda36cc9
29 changed files with 177 additions and 0 deletions

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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>

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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>

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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" />