overleaf/services/web/.storybook/utils/with-bootstrap-switcher.tsx
ilkin-overleaf 8bc374c916 Merge pull request #21115 from overleaf/ii-bs5-review-panel
[web] BS5 review panel new

GitOrigin-RevId: c65d17d0053858bd74984ba746a620b89d900606
2024-10-21 08:04:37 +00:00

17 lines
398 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'],
},
},
args: {
[bootstrapVersionArg]: '3',
},
}