storybook-addon-jsx
Version:
Display the JSX of the story
10 lines (9 loc) • 486 B
TypeScript
import { StoryFn, StoryApi, ClientStoryApi } from '@storybook/addons';
export declare const addDecorator: ClientStoryApi<any>['addDecorator'];
export declare type DecoratorFn = Parameters<typeof addDecorator>[0];
/** Extract components from story and emit them to the panel */
export declare const jsxDecorator: (...args: any) => any;
declare const _default: {
addWithJSX(this: StoryApi<unknown>, kind: string, storyFn: StoryFn<any>): StoryApi<unknown>;
};
export default _default;