Skip to content

Commit

Permalink
Remove duplicated example for navigation with separator (#1941)
Browse files Browse the repository at this point in the history
* Remove duplicated example in navigation

* Update src/components/Navigation/README.md

Co-Authored-By: Andrew Musgrave <andrew.musgrave@shopify.com>

* Update README.md

* Update README.md
  • Loading branch information
Alex Page authored Aug 8, 2019
1 parent 574e291 commit 795f5ff
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions src/components/Navigation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,44 +193,6 @@ Use to present a navigation menu in the [frame](/components/structure/frame).
</Navigation>
```

### Navigation with sections and a separator

Use to divide groups of items with a horizontal divider.

```jsx
<Navigation location="/">
<Navigation.Section
items={[
{
url: '/path/to/place',
label: 'Home',
icon: HomeMajorMonotone,
},
{
url: '/path/to/place',
label: 'Orders',
icon: OrdersMajorTwotone,
},
{
url: '/path/to/place',
label: 'Products',
icon: ProductsMajorTwotone,
},
]}
/>
<Navigation.Section
items={[
{
url: '/path/to/place',
label: 'Online Store',
icon: OnlineStoreMajorTwotone,
},
]}
separator
/>
</Navigation>
```

### Navigation with a secondary action for a section and a section title

Use to present a secondary action, related to a section and to title the section.
Expand Down Expand Up @@ -343,7 +305,7 @@ Use to show a limited number of items in a section with an option to expand the

### Navigation with section separator

Use to add a horizontal line between sections.
Use to add a horizontal line below the section.

```jsx
<Navigation location="/">
Expand Down

0 comments on commit 795f5ff

Please sign in to comment.