mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-23 05:02:10 +08:00
23 lines
521 B
TypeScript
23 lines
521 B
TypeScript
|
import globalThis from 'global';
|
||
|
import { PartialStoryFn, StoryContext } from '@storybook/csf';
|
||
|
|
||
|
export default {
|
||
|
component: null,
|
||
|
decorators: [
|
||
|
(storyFn: PartialStoryFn, context: StoryContext) =>
|
||
|
storyFn({ component: globalThis.Components.Pre, 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' },
|
||
|
b: { control: { disable: true } },
|
||
|
};
|