Skip to main content
Version: Next

createReportDecorator()

function createReportDecorator(reportContext?): (storyFn) => Element

Think of this as a ReportDecorator generator, that allows you to pass in context and override the default The only reason to use this instead of ReportDecorator directly is to pass context

Parameters​

ParameterType
reportContext?Partial<ReportContextValue>

Returns​

Function

Parameters​

ParameterType
storyFnany

Returns​

Element