Skip to content

Commit

Permalink
new-docs: menubar - replace react code
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisSmuda committed Jul 18, 2023
1 parent 4911161 commit c742395
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions docs/content/components/menubar.md
Original file line number Diff line number Diff line change
Expand Up @@ -1278,13 +1278,11 @@ Use the `Label` part to help label a section.

Use the `CheckboxItem` part to add an item that can be checked.

```jsx line=6,17-22
import React from 'react';
import { CheckIcon } from '@radix-ui/react-icons';
```jsx line=4,15-23
import * as Menubar from 'radix-vue';

export default () => {
const [checked, setChecked] = React.useState(true);
const checked = ref(true);

return (
<Menubar.Root>
Expand Down Expand Up @@ -1316,13 +1314,11 @@ export default () => {

Use the `RadioGroup` and `RadioItem` parts to add an item that can be checked amongst others.

```jsx line=6,14-27
import React from 'react';
import { CheckIcon } from '@radix-ui/react-icons';
```jsx line=4,12-25
import * as Menubar from 'radix-vue';

export default () => {
const [color, setColor] = React.useState('blue');
const color = ref('blue')

return (
<Menubar.Root>
Expand Down

0 comments on commit c742395

Please sign in to comment.