mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
19 lines
547 B
TypeScript
19 lines
547 B
TypeScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
import React from 'react';
|
|
import toReact from '@egoist/vue-to-react';
|
|
import { StoryFn } from '@storybook/addons';
|
|
import { addParameters } from '@storybook/client-api';
|
|
import { extractProps } from './extractProps';
|
|
import { extractComponentDescription } from '../../lib/docgen/utils';
|
|
|
|
addParameters({
|
|
docs: {
|
|
prepareForInline: (storyFn: StoryFn) => {
|
|
const Story = toReact(storyFn());
|
|
return <Story />;
|
|
},
|
|
extractProps,
|
|
extractComponentDescription,
|
|
},
|
|
});
|