import React, { useState } from "react"; import styled from "styled-components"; /* eslint-disable import/no-unresolved */ import { Meta } from "@storybook/react/types-6-0"; import TabMenu from "./TabMenu"; import Tab from "./Tab"; export default { title: "Components/Tab Menu", component: TabMenu, argTypes: {}, } as Meta; const Row = styled.div` margin-bottom: 32px; `; export const Default: React.FC = () => { const [index, setIndex] = useState(0); const [index2, setIndex2] = useState(0); const [index3, setIndex3] = useState(0); const handleClick = (newIndex) => setIndex(newIndex); const handleClick2 = (newIndex) => setIndex2(newIndex); const handleClick3 = (newIndex) => setIndex3(newIndex); return ( <> Total Cakers Flippers Storm #1 Team #2 Team #3 Team Really long tab name Short Medium length ); };