// Button.stories.ts|tsx import React from 'react'; import { ComponentMeta, ComponentStory } from '@storybook/react'; import { Card } from '../components/shared/Carda'; import "../assets/scss/App.css"; export default { /* ๐Ÿ‘‡ The title prop is optional. * See https://storybook.js.org/docs/react/configure/overview#configure-story-loading * to learn how to generate automatic titles */ title: 'Card', component: Card, } as ComponentMeta; //๐Ÿ‘‡ We create a โ€œtemplateโ€ of how args map to rendering const Template = (args) => ; //๐Ÿ‘‡ Each story then reuses that template export const Vertical = Template.bind({}); Vertical.args = { orientation: 'vertical', hasDetails: true, children:
details
, imageUrl: "/wotr.jpg", }