Norbert de Langen f2218fa40f wip
2024-05-06 17:14:44 +02:00

25 lines
574 B
TypeScript

import { global as globalThis } from '@storybook/global';
import type { PartialStoryFn, StoryContext } from '@storybook/core/dist/types';
export default {
component: globalThis.Components.Pre,
decorators: [
(storyFn: PartialStoryFn, context: StoryContext) =>
storyFn({ args: { object: { ...context.args } } }),
],
};
export const DisableTable = {
args: { a: 'a', b: 'b' },
argTypes: {
b: { table: { disable: true } },
},
};
export const DisableControl = {
args: { a: 'a', b: 'b' },
argTypes: {
b: { control: { disable: true } },
},
};