import { capitalize } from "lodash"; import React, { useState } from "react"; import { BrowserRouter, Link } from "react-router-dom"; import styled from "styled-components"; import Box from "../Box/Box"; import Flex from "../Box/Flex"; import { AddIcon, AutoRenewIcon, LogoIcon } from "../Svg"; import IconButton from "./IconButton"; import Button from "./Button"; import { ExpandableButton, ExpandableLabel } from "./ExpandableButton"; import { scales, variants } from "./types"; export default { title: "Components/Button", component: Button, argTypes: {}, }; const Row = styled(Flex)` margin-bottom: 32px; & > button + button, & > a + a { margin-left: 16px; } `; export const Default: React.FC = () => { return ( <> {Object.values(variants).map((variant) => { return ( {Object.values(scales).map((scale) => { return ( ); })} ); })} ); }; export const Anchors: React.FC = () => { return ( <> {Object.values(variants).map((variant) => { return ( {Object.values(scales).map((scale) => { return ( ); })} ); })} ); }; export const Variants: React.FC = () => { return ( ); }; export const Expandable: React.FC = () => { const [expanded, setExpanded] = useState(false); return ( setExpanded((prev) => !prev)} /> setExpanded((prev) => !prev)}> ExpandableLabel ); };