navTabs.stories.js 812 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import React from 'react';
  2. import {storiesOf} from '@storybook/react';
  3. import {withInfo} from '@storybook/addon-info';
  4. import NavTabs from 'app/components/navTabs';
  5. storiesOf('UI|NavTabs', module)
  6. .add(
  7. 'default',
  8. withInfo('NavTabs')(() => {
  9. return (
  10. <NavTabs>
  11. <li className="active">
  12. <a href="#">link one</a>
  13. </li>
  14. <li>
  15. <a href="#">link two</a>
  16. </li>
  17. </NavTabs>
  18. );
  19. })
  20. )
  21. .add(
  22. 'underlined',
  23. withInfo('NavTabs with bottom border applied')(() => {
  24. return (
  25. <NavTabs underlined={true}>
  26. <li className="active">
  27. <a href="#">link one</a>
  28. </li>
  29. <li>
  30. <a href="#">link two</a>
  31. </li>
  32. </NavTabs>
  33. );
  34. })
  35. );