Files
directus/app/src/components/v-slider.stories.ts
Rijk van Zanten 4eae2de686 Move updated components to app (#15374)
* Move updated components to app

* Make sure storybook is alive
2022-09-02 14:42:00 -04:00

31 lines
950 B
TypeScript

import VSlider from './v-slider.vue';
document.body.classList.add('light');
// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
export default {
title: 'Components/VSlider',
component: VSlider,
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
argTypes: {
'update:modelValue': { action: 'update:modelValue' },
},
};
// More on component templates: https://storybook.js.org/docs/vue/writing-stories/introduction#using-args
const Template = (args) => ({
// The story's `args` need to be mapped into the template through the `setup()` method
setup() {
return { args };
},
// And then the `args` are bound to your component with `v-bind="args" v-on="args"`
template: '<v-slider v-bind="args" v-on="args" />',
});
export const Primary = Template.bind({});
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
Primary.args = {
modelValue: 50,
};