mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
25 lines
574 B
TypeScript
25 lines
574 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 } }),
|
|
],
|
|
};
|
|
|
|
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 } },
|
|
},
|
|
};
|