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>
39 lines
632 B
TypeScript
39 lines
632 B
TypeScript
import type { Meta, StoryObj } from '@storybook/vue3-vite'
|
|
|
|
import FileInput from '../../components/base/FileInput.vue'
|
|
|
|
const meta = {
|
|
title: 'Base/FileInput',
|
|
component: FileInput,
|
|
} satisfies Meta<typeof FileInput>
|
|
|
|
export default meta
|
|
type Story = StoryObj<typeof meta>
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
prompt: 'Select file',
|
|
},
|
|
}
|
|
|
|
export const Multiple: Story = {
|
|
args: {
|
|
prompt: 'Select files',
|
|
multiple: true,
|
|
},
|
|
}
|
|
|
|
export const ImagesOnly: Story = {
|
|
args: {
|
|
prompt: 'Select image',
|
|
accept: 'image/*',
|
|
},
|
|
}
|
|
|
|
export const Disabled: Story = {
|
|
args: {
|
|
prompt: 'Select file',
|
|
disabled: true,
|
|
},
|
|
}
|