import { ThemeColor } from "../../types"; import { Meta } from "@storybook/react-vite"; import { useState } from "react"; import { Button } from "./Button"; import { ButtonGroup } from "./ButtonGroup"; const meta = { title: "Components/ButtonGroup", component: ButtonGroup, decorators: [(Story) => ], } satisfies Meta; export default meta; const buttonLabels = ["A", "B", "C"]; const colors: ThemeColor[] = [ "yellow", "yellow-alpha", "gray", "gray-alpha", "red", "orange", "green", "blue", ]; const variants = ["contained", "light", "outlined", "text"] as const; const directions = ["horizontal", "vertical"] as const; export const Context = () => { const [val, setVal] = useState("one"); const result = (
{directions.map((direction) => (
{variants.map((variant) => (
{colors.map((color) => ( {buttonLabels.map((label) => ( ))} ))}
))}
))}
); return (
selection : {val}

with Melodineo bg

{result}

Default state

{result}

with Map

{result}
); };