@arnat/styled-nav
v0.0.12
Published
The bootstrap nav component created with styled-components
Downloads
41
Readme
ARNAT - styled-nav
Modular approach to use bootstrap components for quick prototypes, as an entrypoint of the component library.
Usage
import { Nav, NavLink } from '@arnat/styled-nav';
const Navigation = props => (
<Nav мertical>
<NavLink href="#" active>
Active
</NavLink>
<NavLink href="#">Link</NavLink>
<NavLink href="#">Link</NavLink>
<NavLink href="#" disabled>
Disabled
</NavLink>
</Nav>
);
Usage with react-router-dom.
import { Nav, NavLink } from '@arnat/styled-nav';
import { Link } from 'react-router-dom';
const MyNavWithReactRouterDom = props => (
<Nav vertical>
<Link to="#">
<NavLink tabs active>
Active
</NavLink>
</Link>
<Link to="#">
<NavLink tabs>Link</NavLink>
</Link>
<Link to="#">
<NavLink tabs>Link</NavLink>
</Link>
<Link to="#">
<NavLink tabs disabled>
Disabled
</NavLink>
</Link>
</Nav>
);
Properties
Properties which can be added to the component to change the visual appearance.
collapse
only on Nav Type: booleanexpandSm
only on Nav Type: booleanexpandMd
only on Nav Type: booleanexpandLg
only on Nav Type: booleanexpandXl
only on Nav Type: booleanhidden
only on Nav Type: booleanstart
only on Nav Type: stringcenter
only on Nav Type: stringend
only on Nav Type: stringvertical
only on Nav Type: stringjustified
only on Nav Type: stringfill
only on Nav Type: stringtabs
only on NavLink Type: stringpills
only on NavLink Type: stringnoRadius
only on NavLink Type: stringactive
only on NavLink Type: stringdisabled
only on NavLink Type: stringitem
only on NavLink Type: string