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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: remove unavailable apis #519

Merged
merged 1 commit into from
Jun 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 13 additions & 17 deletions apps/docs/content/docs/components/dropdown.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -237,23 +237,19 @@ import { Dropdown } from '@nextui-org/react';

#### Dropdown.Item Props

| Attribute | Type | Description | Default |
| ----------------- | --------------------------------------------------- | ----------------------------------------------------------------------- | --------- |
| **key** | [Key](https://reactjs.org/docs/lists-and-keys.html) | The unique key for the menu item. | `false` |
| **command** | `boolean` | Right-aligned label text content, useful for displaying hotkeys. | - |
| **description** | `boolean` | Description text element inside the dropdown menu item. | - |
| **icon** | `ReactNode` | The icon to render before the dropdown menu item's label. | - |
| **isSelected** | `boolean` | Whether the dropdown item is selected. | `false` |
| **isDisabled** | `boolean` | Whether the dropdown item is disabled. | `false` |
| **isVirtualized** | `boolean` | Whether the dropdown item is contained in a virtual scrolling dropdown. | `false` |
| **closeOnSelect** | `boolean` | Whether the dropdown should close when the dropdown item is selected. | `true` |
| **withDivider** | `boolean` | Whether the dropdown item should have a border on top | `false` |
| **dividerWeight** | [NormalWeight](#normal-weight) | The dropdown item divider height | `light` |
| **color** | [SimpleColors](#simple-colors) | The dropdown item color | `default` |
| **textColor** | [SimpleColors](#simple-colors) | The dropdown item text color | `default` |
| **variant** | [DropdownVariant](#dropdown-variants) | The dropdown item variantion | `flat` |
| **css** | `Stitches.CSS` | Override Default CSS style. | - |
| **as** | `keyof JSX.IntrinsicElements` | Changes which tag component outputs. | `li` |
| Attribute | Type | Description | Default |
| ----------------- | --------------------------------------------------- | ---------------------------------------------------------------- | --------- |
| **key** | [Key](https://reactjs.org/docs/lists-and-keys.html) | The unique key for the menu item. | `false` |
| **command** | `boolean` | Right-aligned label text content, useful for displaying hotkeys. | - |
| **description** | `boolean` | Description text element inside the dropdown menu item. | - |
| **icon** | `ReactNode` | The icon to render before the dropdown menu item's label. | - |
| **withDivider** | `boolean` | Whether the dropdown item should have a border on top | `false` |
| **dividerWeight** | [NormalWeight](#normal-weight) | The dropdown item divider height | `light` |
| **color** | [SimpleColors](#simple-colors) | The dropdown item color | `default` |
| **textColor** | [SimpleColors](#simple-colors) | The dropdown item text color | `default` |
| **variant** | [DropdownVariant](#dropdown-variants) | The dropdown item variantion | `flat` |
| **css** | `Stitches.CSS` | Override Default CSS style. | - |
| **as** | `keyof JSX.IntrinsicElements` | Changes which tag component outputs. | `li` |

<Spacer y={1} />

Expand Down