Add storybook entry for tags display (#456)

This commit is contained in:
Rijk van Zanten
2020-04-22 16:43:04 -04:00
committed by GitHub
parent e4f5c6ea31
commit 8b4bd25a92
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import withPadding from '../../../.storybook/decorators/with-padding';
import { withKnobs, array } from '@storybook/addon-knobs';
import readme from './readme.md';
import { defineComponent } from '@vue/composition-api';
export default {
title: 'Displays / Tags',
decorators: [withPadding, withKnobs],
parameters: {
notes: readme,
},
};
export const basic = () =>
defineComponent({
props: {
value: {
default: array('Value', ['vip', 'executive']),
},
},
template: `
<display-tags :value="value" />
`,
});

View File

@@ -23,4 +23,8 @@ export default defineComponent({
.display-tags {
display: inline-block;
}
.v-chip + .v-chip {
margin-left: 4px;
}
</style>