UNPKG

@dcrackel/meyersquaredui

Version:

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

38 lines (33 loc) 890 B
import EventCartCard from './EventCartCard.vue'; import mockGetTournamentId from '../../../../mocks/getTournamentById.js'; export default { title: 'Organisms/Cards/EventCartCard', component: EventCartCard, argTypes: { isInCart: { control: 'boolean' }, 'add-to-cart': { action: 'add-to-cart' }, }, }; const Template = (args) => ({ components: { EventCartCard }, setup() { return { args }; }, template: '<EventCartCard v-bind="args" />', }); export const Default = Template.bind({}); Default.args = { data: { ...mockGetTournamentId.Events[0], EventPrice: 25.00, }, isInCart: false, }; export const AlreadyInCart = Template.bind({}); AlreadyInCart.args = { data: { ...mockGetTournamentId.Events[0], EventPrice: 25.00, }, isInCart: true, };