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>
48 lines
701 B
TypeScript
48 lines
701 B
TypeScript
import type { Meta, StoryObj } from '@storybook/vue3-vite'
|
|
|
|
import Slider from '../../components/base/Slider.vue'
|
|
|
|
const meta = {
|
|
title: 'Base/Slider',
|
|
component: Slider,
|
|
} satisfies Meta<typeof Slider>
|
|
|
|
export default meta
|
|
type Story = StoryObj<typeof meta>
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
modelValue: 50,
|
|
min: 0,
|
|
max: 100,
|
|
},
|
|
}
|
|
|
|
export const WithUnit: Story = {
|
|
args: {
|
|
modelValue: 50,
|
|
min: 0,
|
|
max: 100,
|
|
unit: '%',
|
|
},
|
|
}
|
|
|
|
export const WithSnapPoints: Story = {
|
|
args: {
|
|
modelValue: 25,
|
|
min: 0,
|
|
max: 100,
|
|
step: 25,
|
|
snapPoints: [0, 25, 50, 75, 100],
|
|
},
|
|
}
|
|
|
|
export const Disabled: Story = {
|
|
args: {
|
|
modelValue: 50,
|
|
min: 0,
|
|
max: 100,
|
|
disabled: true,
|
|
},
|
|
}
|