Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 58x 31x 58x 58x | import type { ComponentStory } from "@storybook/react"; import * as React from "react"; // @ts-ignore import mdx from "./index.mdx"; import { Button } from "stories"; export default { component: Button }; export const CSFStoriesWithArbitraryMDX: ComponentStory<typeof Button> = ( args ) => <Button {...args} />; CSFStoriesWithArbitraryMDX.args = { label: "Documentation provided by arbitrary mdx file imports", }; // don't show the component in the docs created by mdx CSFStoriesWithArbitraryMDX.parameters = { docs: { page: mdx, }, }; |