2018-11-26 18:52:47 -08:00
|
|
|
---
|
|
|
|
name: Sidebar
|
|
|
|
---
|
|
|
|
|
|
|
|
import { Playground, PropsTable } from 'docz'
|
2018-11-28 20:14:44 -08:00
|
|
|
|
|
|
|
import { SidebarComponent } from './sidebar.js'
|
2018-11-28 17:54:08 -08:00
|
|
|
import { DoczWrapper } from '../theme.js'
|
2018-11-26 18:52:47 -08:00
|
|
|
|
|
|
|
# Sidebar
|
|
|
|
|
2018-12-17 19:33:25 -08:00
|
|
|
## General
|
|
|
|
|
|
|
|
Sidebar component does not behave correctly inside Docz Styleguide as it is tighly coupled with the router.
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
2018-11-26 18:52:47 -08:00
|
|
|
<PropsTable of={SidebarComponent} />
|
|
|
|
|
2018-12-17 19:33:25 -08:00
|
|
|
## Basic Usage
|
2018-11-26 18:52:47 -08:00
|
|
|
|
|
|
|
<Playground>
|
2018-11-28 17:54:08 -08:00
|
|
|
<DoczWrapper>
|
2018-12-17 19:33:25 -08:00
|
|
|
{() => <SidebarComponent location={{}} />}
|
2018-11-28 17:54:08 -08:00
|
|
|
</DoczWrapper>
|
2018-11-26 18:52:47 -08:00
|
|
|
</Playground>
|