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.

44 lines (38 loc) 1.19 kB
import ClubDetailPage from './ClubDetailPage.vue'; import mockGetClubById from "../../../mocks/getClubById.js"; export default { title: 'Templates/ClubDetailPage', component: ClubDetailPage, argTypes: { title: { control: 'text' }, description: { control: 'text' }, imageSrc: { control: 'text' }, tournaments: { control: 'array' }, tournamentsIsLoading: { control: 'boolean' }, }, }; const Template = (args) => ({ components: { ClubDetailPage }, setup() { return { args }; }, template: '<ClubDetailPage v-bind="args" />', }); export const Default = Template.bind({}); Default.args = { title: 'Local Clubs', description: 'Explore clubs near you<br> and join the community!', imageSrc: 'https://meyersquared.com/images/banners/thinbannerclub.jpg', club: mockGetClubById[0], clubsIsLoading: false, }; export const LoadingState = Template.bind({}); LoadingState.args = { ...Default.args, tournamentsIsLoading: true, }; export const NoTournaments = Template.bind({}); NoTournaments.args = { ...Default.args, tournaments: [], };