Skip to content

Commit

Permalink
fixup! fixup! Docs(web-react): Update Dropdown demo with Item usage #…
Browse files Browse the repository at this point in the history
…DS-956
  • Loading branch information
pavelklibani committed Dec 5, 2023
1 parent 575d1a8 commit c89479a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/web-react/src/components/Dropdown/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dropdown

⚠️ Dropdown component is [deprecated][deprecated] and will be removed in the next major version. Please use "DropdownModern" component instead.
This is the React implementation of the [Dropdown] component.
This is the React implementation of the [Dropdown][dropdown] component.

## Usage

Expand All @@ -17,8 +17,8 @@ import { Dropdown, Button } from '@lmc-eu/spirit-web-react/components';

### Dropdown with Item

Enhance your DropdownPopover by incorporating the versatile [Item] component.
Explore additional examples and insights within the dedicated documentation for the [Item] component.
Enhance your DropdownPopover by incorporating the versatile [Item][item] component.
Explore additional examples and insights within the dedicated documentation for the [Item][item] component.

```jsx
import { Dropdown, Button, Item } from '@lmc-eu/spirit-web-react/components';
Expand Down Expand Up @@ -57,7 +57,7 @@ import { Dropdown, Button, Item } from '@lmc-eu/spirit-web-react/components';

# DropdownModern

⚠️ `DropdownModern` component is [deprecated] and will be renamed to `Dropdown` in the next major version.
⚠️ `DropdownModern` component is [deprecated][deprecated] and will be renamed to `Dropdown` in the next major version.

## Usage

Expand All @@ -77,8 +77,8 @@ const onToggle = () => setIsOpen(!isOpen);

### Dropdown with Item

Enhance your DropdownPopover by incorporating the versatile [Item] component.
Explore additional examples and insights within the dedicated documentation for the [Item] component.
Enhance your DropdownPopover by incorporating the versatile [Item][item] component.
Explore additional examples and insights within the dedicated documentation for the [Item][item] component.

```jsx
const [isOpen, setIsOpen] = React.useState(false);
Expand Down
2 changes: 1 addition & 1 deletion packages/web-react/src/components/Item/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ import { Checkbox } from '@lmc-eu/spirit-web-react';
<Checkbox id="checkboxItem" name="example" label="Checkbox Label" isItem />;
```

Usage in [Dropdown] component:
Usage in [Dropdown][dropdown] component:

```jsx
import { DropdownModern, DropdownTrigger, DropdownPopover, Item } from '@lmc-eu/spirit-web-react/components';
Expand Down

0 comments on commit c89479a

Please sign in to comment.