You've already forked AstralRinth
forked from didirus/AstralRinth
* add storybook * clean up stories * small fix * add stories for all components * add vintl * default to dark mode * fix teleport * add theme addon * add new modal story * delete broken stories * move all stories to central stories folder * fix paths * add pnpm run storybook * remove chromatic * add add-stories.md * fix types * fix unncessary args field * cover more addordion states * pt2 * remove old vintl * fix: missing style + ctx --------- Co-authored-by: Calum H. (IMB11) <contact@cal.engineer>
58 lines
1.4 KiB
TypeScript
58 lines
1.4 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/vue3-vite'
|
|
|
|
import AppearingProgressBar from '../../components/base/AppearingProgressBar.vue'
|
|
|
|
const meta = {
|
|
title: 'Base/AppearingProgressBar',
|
|
component: AppearingProgressBar,
|
|
} satisfies Meta<typeof AppearingProgressBar>
|
|
|
|
export default meta
|
|
type Story = StoryObj<typeof meta>
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
maxValue: 100,
|
|
currentValue: 45,
|
|
},
|
|
}
|
|
|
|
export const AllProgress: Story = {
|
|
...Default,
|
|
render: () => ({
|
|
components: { AppearingProgressBar },
|
|
template: `
|
|
<div class="flex flex-col gap-8">
|
|
<div>
|
|
<p class="text-secondary mb-2">0%</p>
|
|
<AppearingProgressBar :maxValue="100" :currentValue="0" />
|
|
</div>
|
|
<div>
|
|
<p class="text-secondary mb-2">25%</p>
|
|
<AppearingProgressBar :maxValue="100" :currentValue="25" />
|
|
</div>
|
|
<div>
|
|
<p class="text-secondary mb-2">50%</p>
|
|
<AppearingProgressBar :maxValue="100" :currentValue="50" />
|
|
</div>
|
|
<div>
|
|
<p class="text-secondary mb-2">75%</p>
|
|
<AppearingProgressBar :maxValue="100" :currentValue="75" />
|
|
</div>
|
|
<div>
|
|
<p class="text-secondary mb-2">100%</p>
|
|
<AppearingProgressBar :maxValue="100" :currentValue="100" />
|
|
</div>
|
|
</div>
|
|
`,
|
|
}),
|
|
}
|
|
|
|
export const CustomTips: Story = {
|
|
args: {
|
|
maxValue: 1000000,
|
|
currentValue: 450000,
|
|
tips: ['Loading assets...', 'Processing data...', 'Almost there...'],
|
|
},
|
|
}
|