import { Component } from 'react'; import { storiesOf } from '@storybook/react'; import { boolean } from '@storybook/addon-knobs'; import Tab, { TabBar } from './index'; class Wrapper extends Component { state = { activeTab: 'first', }; onTabChange = tabName => { this.setState({ activeTab: tabName }); }; render() { const { activeTab } = this.state; return (

Default

First section Second section Third section

Rounded

First section Second section Third section
); } } storiesOf('Components/Tabs', module).add('Basic', () => );