navTabs.stories.js 742 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import NavTabs from 'sentry/components/navTabs';
  2. export default {
  3. title: 'Views/Tabs',
  4. component: NavTabs,
  5. };
  6. export const Default = () => {
  7. return (
  8. <NavTabs>
  9. <li className="active">
  10. <a href="#">link one</a>
  11. </li>
  12. <li>
  13. <a href="#">link two</a>
  14. </li>
  15. </NavTabs>
  16. );
  17. };
  18. Default.storyName = 'Default';
  19. export const Underlined = () => {
  20. return (
  21. <NavTabs underlined>
  22. <li className="active">
  23. <a href="#">link one</a>
  24. </li>
  25. <li>
  26. <a href="#">link two</a>
  27. </li>
  28. </NavTabs>
  29. );
  30. };
  31. Underlined.storyName = 'Underlined';
  32. Underlined.parameters = {
  33. docs: {
  34. description: {
  35. story: 'NavTabs with bottom border applied',
  36. },
  37. },
  38. };