latex-ub/services/web/.storybook/utils/with-bootstrap-switcher.tsx
2025-05-05 12:24:05 +00:00

20 lines
462 B
TypeScript

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'],
table: {
defaultValue: { summary: '5' },
},
},
},
args: {
[bootstrapVersionArg]: '5',
},
}