@spaceone/design-system
Version:
SpaceONE Design System
46 lines (42 loc) • 1.13 kB
text/typescript
import { select, text, number } from '@storybook/addon-knobs';
import PLottie from './PLottie.vue';
import { names } from './p-lotties/names';
export default {
title: 'Foundation/Graphics/Animations',
component: PLottie,
parameters: {
centered: { disable: true },
design: {
type: 'figma',
url: 'https://www.figma.com/file/wq4wSowBcADBuUrMEZLz6i/SpaceONE-Console-Design?node-id=6132%3A123859',
},
},
};
export const lottie = () => ({
components: { PLottie },
template: `<div>
<p-lottie v-bind="$props"
style="width: 80vw; height: 80vh;"
/>
</div>`,
props: {
name: {
default: select('name', names, names[0]),
},
size: {
default: number('size', 1),
},
height: {
type: String,
default: text('height', '100%'),
},
width: {
type: String,
default: text('width', '100%'),
},
},
setup() {
return {
};
},
});