docs: show both code groups in sync example

- Add second code group to output section
- Users can now actually test the synchronization behavior
- Add tip to encourage trying the interactive demo
pull/5012/head
juji 1 month ago
parent 6e26da905e
commit d8362cc0fe

@ -838,6 +838,26 @@ yarn add vitepress
:::
::: code-group group-name=package-managers
```bash [npm]
npm run docs
```
```bash [pnpm]
pnpm run docs
```
```bash [yarn]
yarn docs
```
:::
::: tip
Try clicking different tabs above! Notice how both code groups switch together because they share the same `group-name`.
:::
The `group-name` parameter accepts only alphanumeric characters, hyphens, and underscores. No whitespace is allowed.
Valid examples:

Loading…
Cancel
Save