2024-08-08 13:00:19 +02:00

26 lines
573 B
TypeScript

import type { PartialStoryFn, StoryContext } from 'storybook/internal/types';
import { global as globalThis } from '@storybook/global';
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 } },
},
};