Skip to main content

Exports

storybook-addon-badges exports the following values:

ExportTypePurpose
BadgeConfigTypeType definition of a single badge configuration.
BadgesConfigTypeType definition of the badge mapping object.
TooltipConfigTypeType definition for tooltip value.
TooltipMessagePropsTypeType definition for tooltip props object.
defaultBadgeConfigConfigConfiguration for the default badge.
defaultBadgesConfigConfigConfiguration map of all pre-defined badges.
ADDON_IDConstantThe ID of the addon used internally.
ADDON_TITLEConstantThe name of the addon.
BADGEConstantMapping object of pre-defined badge names.
PARAM_BADGES_KEYConstantThe param key for defining badges that apply to stories.
PARAM_CONFIG_KEYConstantThe param key for defining custom badges.
TOOL_IDConstantInternal tool name.