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.

40 lines (35 loc) 908 B
import EventListCard from './EventListCard.vue'; import mockGetTournamentId from "../../../../mocks/getTournamentById.js"; export default { title: 'Organisms/Cards/EventListCard', component: EventListCard, argTypes: { weaponIcon: { control: 'object', }, eventRating: { control: 'text', }, eventName: { control: 'text', }, fencerCount: { control: 'number', }, }, }; const Template = (args) => ({ components: { EventListCard }, setup() { return { args }; }, template: '<EventListCard v-bind="args" />', }); export const Default = Template.bind({}); Default.args = { data: mockGetTournamentId.Events[0] }; export const longsword = Template.bind({}); longsword.args = { data: mockGetTournamentId.Events[1] };