overleaf/services/web/.storybook/utils/with-bootstrap-switcher.tsx

18 lines
398 B
TypeScript
Raw Normal View History

import { Meta } from '@storybook/react'
export const bootstrapVersionArg = 'bootstrapVersion'
export const bsVersionDecorator: Meta = {
argTypes: {
[bootstrapVersionArg]: {
name: 'Bootstrap Version',
description: 'Bootstrap version for components',
control: { type: 'inline-radio' },
options: ['3', '5'],
},
},
args: {
[bootstrapVersionArg]: '3',
},
}