Skip to content

Update shadcn command #462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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