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

21 lines
462 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'],
2024-10-23 03:32:40 -04:00
table: {
defaultValue: { summary: '3' },
},
},
},
args: {
[bootstrapVersionArg]: '3',
},
}