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.

36 lines (31 loc) 830 B
import ArticleCard from './ArticleCard.vue'; import mockArticles from "../../../../mocks/getArticles.js"; export default { title: 'Organisms/Cards/ArticleCard', component: ArticleCard, args: { article: mockArticles[0], isLoading: false }, argTypes: { onReadMore: { action: 'read-more' }, isLoading: { control: 'boolean' } } }; const Template = (args) => ({ components: { ArticleCard }, setup() { return { args }; }, template: '<ArticleCard v-bind="args" @read-more="args.onReadMore" />', }); export const Default = Template.bind({}); Default.args = { data: mockArticles[0], isLoading: false }; export const Loading = Template.bind({}); Loading.args = { data: mockArticles[0], isLoading: true };