Fixing docz
This commit is contained in:
parent
69ff46fa5c
commit
01c5456ccf
@ -13,7 +13,7 @@ export {
|
|||||||
Icon,
|
Icon,
|
||||||
IconButton,
|
IconButton,
|
||||||
Input,
|
Input,
|
||||||
NavBag,
|
NavBar,
|
||||||
Select,
|
Select,
|
||||||
Svg,
|
Svg,
|
||||||
ThemeWrapper,
|
ThemeWrapper,
|
||||||
|
|||||||
@ -1,26 +0,0 @@
|
|||||||
---
|
|
||||||
name: NavBag
|
|
||||||
menu: Components
|
|
||||||
route: components/label
|
|
||||||
---
|
|
||||||
|
|
||||||
import { Playground, Props } from 'docz';
|
|
||||||
import NavBag from './';
|
|
||||||
|
|
||||||
# NavBag
|
|
||||||
|
|
||||||
## Import
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
import { NavBag } from '@ohif/ui';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Basic usage
|
|
||||||
|
|
||||||
<Playground>
|
|
||||||
<NavBag />
|
|
||||||
</Playground>
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
<Props of={NavBag} />
|
|
||||||
@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
|
|
||||||
const NavBag = ({ className, children }) => {
|
const NavBar = ({ className, children }) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={classnames(
|
className={classnames(
|
||||||
@ -15,9 +15,9 @@ const NavBag = ({ className, children }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
NavBag.propTypes = {
|
NavBar.propTypes = {
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
children: PropTypes.node,
|
children: PropTypes.node,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default NavBag;
|
export default NavBar;
|
||||||
32
platform/ui/src/components/NavBar/NavBar.mdx
Normal file
32
platform/ui/src/components/NavBar/NavBar.mdx
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
---
|
||||||
|
name: NavBar
|
||||||
|
menu: Components
|
||||||
|
route: components/navBar
|
||||||
|
---
|
||||||
|
|
||||||
|
import { Playground, Props } from 'docz';
|
||||||
|
import Button from './../Button';
|
||||||
|
import Typography from './../Typography';
|
||||||
|
import NavBar from './';
|
||||||
|
|
||||||
|
# NavBar
|
||||||
|
|
||||||
|
## Import
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import { NavBar } from '@ohif/ui';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Basic usage
|
||||||
|
|
||||||
|
<Playground>
|
||||||
|
<NavBar className="justify-center">
|
||||||
|
<Typography variant="h3" className="m-2">
|
||||||
|
Header content
|
||||||
|
</Typography>
|
||||||
|
</NavBar>
|
||||||
|
</Playground>
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
<Props of={NavBar} />
|
||||||
@ -1,2 +1,2 @@
|
|||||||
import NavBag from './NavBag';
|
import NavBar from './NavBar';
|
||||||
export default NavBag;
|
export default NavBar;
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import DateRange from './DateRange';
|
|||||||
import Icon from './Icon';
|
import Icon from './Icon';
|
||||||
import IconButton from './IconButton';
|
import IconButton from './IconButton';
|
||||||
import Input from './Input';
|
import Input from './Input';
|
||||||
import NavBag from './NavBag';
|
import NavBar from './NavBar';
|
||||||
import Select from './Select';
|
import Select from './Select';
|
||||||
import Svg from './Svg';
|
import Svg from './Svg';
|
||||||
import ThemeWrapper from './ThemeWrapper/';
|
import ThemeWrapper from './ThemeWrapper/';
|
||||||
@ -17,7 +17,7 @@ export {
|
|||||||
Icon,
|
Icon,
|
||||||
IconButton,
|
IconButton,
|
||||||
Input,
|
Input,
|
||||||
NavBag,
|
NavBar,
|
||||||
Select,
|
Select,
|
||||||
Svg,
|
Svg,
|
||||||
ThemeWrapper,
|
ThemeWrapper,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user