import type * as Stitches from "@stitches/react"; import { modifyVariantsForStory } from "../../../.storybook/type-utils"; import { styled } from "../../stitches.config"; const Example = styles("div", { // ... }); export default Example; type ExampleVariants = Stitches.VariantProps; interface ExampleProps extends ExampleVariants {} // Use this as the type in Story; i.e. `ComponentMeta` export const ExampleStory = modifyVariantsForStory(Example);