#Addon Tabs definitions

3 messages · Page 1 of 1 (latest)

pastel rapids
#

The 7.0 Storybook documentation about addon-types (https://storybook.js.org/docs/7.0/react/addons/addon-types#tabs) includes a snippet to create tabs.

Besides the syntax error in the import :

import { addons, type types } from '@storybook/preview-api';

It sounds like @storybook/preview-api doesn't expose types used for type: types.TAB, right now.

#

Should it expose the types the same way @storybook/addonscurrently does?

import { type Addon_Type, Addon_TypesEnum } from '@storybook/types';

export { type Addon_Type as Addon, Addon_TypesEnum as types };
spring ibex