我配置了我的故事书,在我的config.js
中我有:
addDecorator(
withOptions({
/**
* name to display in the top left corner
* @type {String}
*/
name: 'Testing Storybook',
/**
* URL for name in top left corner to link to
* @type {String}
*/
url: '#',
}),
);
但是当我发布故事书时,这个名字并没有反映出来。它显示默认的“故事书”作为名称。请帮忙
正确的方法是使用addParameters
。那是
import { addParameters, configure } from '@storybook/react';
addParameters({
options: {
name: 'Custom-Name',
}
});
有关更多信息,请参阅docs。