Improve typing by making isMobile optional & removing PropsWithChildren

Improve consistency in documentation

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2022-01-05 16:02:39 +01:00
parent a0142b7b04
commit 7c28c82537
9 changed files with 71 additions and 39 deletions
@@ -94,7 +94,7 @@ import InternalToolIcon from './internal-tool.icon.svg';
On mobile devices the `Sidebar` is displayed at the bottom of the screen. For
customizing the experience you can group `SidebarItems` in a `SidebarGroup`
(Example 1) or create a `SidebarGroup` with a link (Example 2). All
`SidebarGroups` are displayed in the bottom navigation with an icon.
`SidebarGroup`s are displayed in the bottom navigation with an icon.
```ts
// Example 1