@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.
45 lines (39 loc) • 1.25 kB
JavaScript
import ClubListPage from './ClubListPage.vue';
import mockAllClubs from "../../../mocks/getAllClubs.js";
export default {
title: 'Templates/ClubListPage',
component: ClubListPage,
argTypes: {
title: { control: 'text' },
description: { control: 'text' },
imageSrc: { control: 'text' },
tournaments: { control: 'array' },
tournamentsIsLoading: { control: 'boolean' },
},
};
const Template = (args) => ({
components: { ClubListPage },
setup() {
return { args };
},
template: '<ClubListPage v-bind="args" />',
});
export const Default = Template.bind({});
Default.args = {
title: 'Local Clubs',
description: 'Explore clubs near you and join the community!',
imageSrc: 'https://meyersquaredimages.com/images/banners/largebanner03.jpg',
mobileImageSrc: 'https://meyersquaredimages.com/images/banners/largebanner03.jpg',
clubs: mockAllClubs,
clubsIsLoading: false,
};
export const LoadingState = Template.bind({});
LoadingState.args = {
...Default.args,
tournamentsIsLoading: true,
};
export const NoTournaments = Template.bind({});
NoTournaments.args = {
...Default.args,
tournaments: [],
};