* 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>
45 lines
1.0 KiB
TypeScript
45 lines
1.0 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/vue3-vite'
|
|
|
|
import LargeRadioButton from '../../components/base/LargeRadioButton.vue'
|
|
|
|
const meta = {
|
|
title: 'Base/LargeRadioButton',
|
|
// @ts-ignore
|
|
component: LargeRadioButton,
|
|
} satisfies Meta<typeof LargeRadioButton>
|
|
|
|
export default meta
|
|
|
|
export const Default: StoryObj = {
|
|
render: () => ({
|
|
components: { LargeRadioButton },
|
|
template: `
|
|
<LargeRadioButton :selected="false">
|
|
Unselected option
|
|
</LargeRadioButton>
|
|
`,
|
|
}),
|
|
}
|
|
|
|
export const AllStates: StoryObj = {
|
|
render: () => ({
|
|
components: { LargeRadioButton },
|
|
template: `
|
|
<div class="flex flex-col gap-4 max-w-md">
|
|
<LargeRadioButton :selected="false">
|
|
Unselected option
|
|
</LargeRadioButton>
|
|
<LargeRadioButton :selected="true">
|
|
Selected option
|
|
</LargeRadioButton>
|
|
<LargeRadioButton :selected="false" :disabled="true">
|
|
Disabled unselected
|
|
</LargeRadioButton>
|
|
<LargeRadioButton :selected="true" :disabled="true">
|
|
Disabled selected
|
|
</LargeRadioButton>
|
|
</div>
|
|
`,
|
|
}),
|
|
}
|