Skip to content
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

Patch 1 #128

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
48 changes: 25 additions & 23 deletions docs/docs/components/context-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,18 @@ Context menu item. Typically a row with text inside of it.

The `key` prop is **required**. The `key` must be unique within the entire menu, including submenus.

| Prop | Required | Default | Platforms |
| ------------- | -------- | ------- | ----------------------- |
| `key` | Yes | | `web`, `ios`, `android` |
| `disabled` | | | `web`, `ios`, `android` |
| `destructive` | | | `web`, `ios`, `android` |
| `hidden` | | | `ios`, `android` |
| `style` | | | `web` |
| `onSelect` | | | `web`, `android`, `ios` |
| `textValue` | | | `web` |
| `onFocus` | | | `web` |
| `onBlur` | | | `web` |
| Prop | Required | Default | Platforms |
| -------------------------- | -------- | ------- | ------------------------ |
| `key` | Yes | | `web`, `ios`, `android` |
| `disabled` | | | `web`, `ios`, `android` |
| `destructive` | | | `web`, `ios`, `android` |
| `onSelect` | | | `web`, `ios`, `android` |
| `shouldDismissMenuOnSelect`| | | `web`, `ios`, `android` |
| `hidden` | | | `web`, `ios`, `android` |
| `textValue` | | | `web` |
| `style` | | | `web` |
| `onFocus` | | | `web` |
| `onBlur` | | | `web` |

On web, `Item` will render its a component as its child and apply styles. On other platforms, it simply renders a native menu item, and styles do not apply.

Expand Down Expand Up @@ -389,18 +390,19 @@ For more web props, see the Radix UI [docs for `ContextMenu.Group`](https://www.

Usage is similar to [`Item`](#item) with added checkbox features.

| Prop | Required | Default | Platforms |
| --------------- | -------- | ------- | ------------------------ |
| `key` | Yes | | `web`, `ios`, `android` |
| `value` | Yes | | `web`, `ios`, `android` |
| `disabled` | | | `web` , `ios`, `android` |
| `destructive` | | | `web` , `ios`, `android` |
| `onValueChange` | | | `web` , `ios`, `android` |
| `hidden` | | | `web` , `ios`, `android` |
| `textValue` | | | `web` |
| `style` | | | `web` |
| `onFocus` | | | `web` |
| `onBlur` | | | `web` |
| Prop | Required | Default | Platforms |
| -------------------------- | -------- | ------- | ------------------------ |
| `key` | Yes | | `web`, `ios`, `android` |
| `value` | Yes | | `web`, `ios`, `android` |
| `disabled` | | | `web`, `ios`, `android` |
| `destructive` | | | `web`, `ios`, `android` |
| `onValueChange` | | | `web`, `ios`, `android` |
| `shouldDismissMenuOnSelect`| | | `web`, `ios`, `android` |
| `hidden` | | | `web`, `ios`, `android` |
| `textValue` | | | `web` |
| `style` | | | `web` |
| `onFocus` | | | `web` |
| `onBlur` | | | `web` |

```tsx
<ContextMenu.CheckboxItem
Expand Down
48 changes: 25 additions & 23 deletions docs/docs/components/dropdown-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,18 @@ Dropdown menu item. Typically a row with text inside of it.

The `key` prop is **required**. The same `key` must not be used more than once in the same menu.

| Prop | Required | Default | Platforms |
| ------------- | -------- | ------- | ----------------------- |
| `key` | Yes | | `web`, `ios`, `android` |
| `disabled` | | | `web`, `ios`, `android` |
| `destructive` | | | `web`, `ios`, `android` |
| `hidden` | | | `ios`, `android` |
| `style` | | | `web` |
| `onSelect` | | | `web` |
| `textValue` | | | `web` |
| `onFocus` | | | `web` |
| `onBlur` | | | `web` |
| Prop | Required | Default | Platforms |
| -------------------------- | -------- | ------- | ------------------------ |
| `key` | Yes | | `web`, `ios`, `android` |
| `disabled` | | | `web`, `ios`, `android` |
| `destructive` | | | `web`, `ios`, `android` |
| `onSelect` | | | `web`, `ios`, `android` |
| `shouldDismissMenuOnSelect`| | | `web`, `ios`, `android` |
| `hidden` | | | `web`, `ios`, `android` |
| `textValue` | | | `web` |
| `style` | | | `web` |
| `onFocus` | | | `web` |
| `onBlur` | | | `web` |

On web, it will render its children and apply styles. On other platforms, it simply maps to a native menu item.

Expand Down Expand Up @@ -344,18 +345,19 @@ For more web props, see the Radix UI [docs for `DropdownMenu.Group`](https://www

Usage is similar to [`Item`](#item) with added checkbox features.

| Prop | Required | Default | Platforms |
| --------------- | -------- | ------- | ------------------------ |
| `key` | Yes | | `web`, `ios`, `android` |
| `value` | Yes | | `web`, `ios`, `android` |
| `disabled` | | | `web` , `ios`, `android` |
| `destructive` | | | `web` , `ios`, `android` |
| `onValueChange` | | | `web` , `ios`, `android` |
| `hidden` | | | `web` , `ios`, `android` |
| `textValue` | | | `web` |
| `style` | | | `web` |
| `onFocus` | | | `web` |
| `onBlur` | | | `web` |
| Prop | Required | Default | Platforms |
| -------------------------- | -------- | ------- | ------------------------ |
| `key` | Yes | | `web`, `ios`, `android` |
| `value` | Yes | | `web`, `ios`, `android` |
| `disabled` | | | `web`, `ios`, `android` |
| `destructive` | | | `web`, `ios`, `android` |
| `onValueChange` | | | `web`, `ios`, `android` |
| `shouldDismissMenuOnSelect`| | | `web`, `ios`, `android` |
| `hidden` | | | `web`, `ios`, `android` |
| `textValue` | | | `web` |
| `style` | | | `web` |
| `onFocus` | | | `web` |
| `onBlur` | | | `web` |

```tsx
<DropdownMenu.CheckboxItem
Expand Down