-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add markdown docs for NavMenu components (#256)
* docs: make adjacent code samples appear closer to each other * docs: add markdown documentation for navigation components * chore: update changelog * docs: show JSX language name on code snippets
- Loading branch information
1 parent
546d52b
commit 32affd5
Showing
7 changed files
with
317 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# NavMenu | ||
|
||
This is primary navigation component for Clockface applications. It is intentionally minimalistic to maximize screen space for application features. On small screens it moves to the top. | ||
|
||
### Usage | ||
```tsx | ||
import {NavMenu} from '@influxdata/clockface' | ||
``` | ||
```tsx | ||
<NavMenu> | ||
<NavMenu.Item> | ||
<NavMenu.SubItem /> | ||
</NavMenu.Item> | ||
<NavMenu.Item /> | ||
</NavMenu> | ||
``` | ||
|
||
### As Part of an Application Layout | ||
|
||
We recommend using `NavMenu` in combination with `AppWrapper` and `Page` to have all the basics for an application: | ||
```tsx | ||
<AppWrapper> | ||
<NavMenu /> | ||
<Page /> | ||
</AppWrapper> | ||
``` | ||
|
||
### Example | ||
<!-- STORY --> | ||
|
||
|
||
<!-- STORY HIDE START --> | ||
|
||
<!-- STORY HIDE END --> | ||
|
||
<!-- PROPS --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.