import React , { ComponentProps } from 'react' ; import { SeverityBadge } from './severity_badge' ; type Args = ComponentProps < typeof SeverityBadge > ; export default { title : 'app/Alerts/SeverityBadge' , component : SeverityBadge , } ; export function Example ( { severityLevel } ) { return < SeverityBadge severityLevel = { severityLevel } />; } Example . args = { severityLevel : 'critical' } as Args ;