2022-12-09 22:03:35 +01:00

17 lines
523 B
TypeScript

import { global as globalThis } from '@storybook/global';
import type { PartialStoryFn, StoryContext } from '@storybook/types';
export default {
component: null,
decorators: [
(storyFn: PartialStoryFn, context: StoryContext) =>
storyFn({ component: globalThis.Components.Pre, args: { object: context.args } }),
],
};
// https://github.com/storybookjs/storybook/issues/14752
export const MissingRadioOptions = {
argTypes: { invalidRadio: { control: 'radio' } },
args: { invalidRadio: 'someValue' },
};