Skip to content

Commit

Permalink
Merge pull request #462 from code-hike/shadcn-cli
Browse files Browse the repository at this point in the history
Update shadcn command
  • Loading branch information
pomber authored Oct 2, 2024
2 parents d4ddd98 + 220985e commit 496d34c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/web/content/docs/code/collapse.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Fold and unfold blocks of code.
We use the `Collapsible` component from [shadcn/ui](https://ui.shadcn.com/docs/components/collapsible):

```bash -c
npx shadcn-ui@latest add collapsible
npx shadcn@latest add collapsible
```

For each `!collapse` annotation we need to add two extra annotations, one for the trigger and one for the content.
Expand Down
2 changes: 1 addition & 1 deletion apps/web/content/docs/code/language-switcher.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Add a language picker when you need to switch between languages in a code block.
We use the `Select` components from [shadcn/ui](https://ui.shadcn.com/docs/components/select):

```bash -c
npx shadcn-ui@latest add select
npx shadcn@latest add select
```

Since our component will have state we need a client component:
Expand Down
2 changes: 1 addition & 1 deletion apps/web/content/docs/code/tabs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Show multiple code blocks in tabs.
We use the [`Tabs` components](https://ui.shadcn.com/docs/components/tabs) from shadcn/ui:

```bash -c
npx shadcn-ui@latest add tabs
npx shadcn@latest add tabs
```

And then create a component to handle multiple codeblocks as tabs:
Expand Down
2 changes: 1 addition & 1 deletion apps/web/content/docs/code/tooltip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ We store the tooltip content in the annotation data

</CodeWithNotes>

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`):
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`):

<CodeWithNotes lineNumbers={false}>

Expand Down

0 comments on commit 496d34c

Please sign in to comment.