mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-17 00:05:59 +08:00
26 lines
573 B
TypeScript
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 } },
|
|
},
|
|
};
|