Skip to content

Commit 496d34c

Browse files
authored
Merge pull request #462 from code-hike/shadcn-cli
Update shadcn command
2 parents d4ddd98 + 220985e commit 496d34c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

apps/web/content/docs/code/collapse.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Fold and unfold blocks of code.
1919
We use the `Collapsible` component from [shadcn/ui](https://ui.shadcn.com/docs/components/collapsible):
2020

2121
```bash -c
22-
npx shadcn-ui@latest add collapsible
22+
npx shadcn@latest add collapsible
2323
```
2424

2525
For each `!collapse` annotation we need to add two extra annotations, one for the trigger and one for the content.

apps/web/content/docs/code/language-switcher.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add a language picker when you need to switch between languages in a code block.
2121
We use the `Select` components from [shadcn/ui](https://ui.shadcn.com/docs/components/select):
2222

2323
```bash -c
24-
npx shadcn-ui@latest add select
24+
npx shadcn@latest add select
2525
```
2626

2727
Since our component will have state we need a client component:

apps/web/content/docs/code/tabs.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Show multiple code blocks in tabs.
1515
We use the [`Tabs` components](https://ui.shadcn.com/docs/components/tabs) from shadcn/ui:
1616

1717
```bash -c
18-
npx shadcn-ui@latest add tabs
18+
npx shadcn@latest add tabs
1919
```
2020

2121
And then create a component to handle multiple codeblocks as tabs:

apps/web/content/docs/code/tooltip.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ We store the tooltip content in the annotation data
5454

5555
</CodeWithNotes>
5656

57-
Then we define an `AnnotationHandler` to render the tooltip inline using the [shadcn tooltip](https://ui.shadcn.com/docs/components/tooltip) components (`npx shadcn-ui@latest add tooltip`):
57+
Then we define an `AnnotationHandler` to render the tooltip inline using the [shadcn tooltip](https://ui.shadcn.com/docs/components/tooltip) components (`npx shadcn@latest add tooltip`):
5858

5959
<CodeWithNotes lineNumbers={false}>
6060

0 commit comments

Comments
 (0)