diff --git a/app/javascript/packages/components/troubleshooting-options.jsx b/app/javascript/packages/components/troubleshooting-options.jsx index f6ff90c53b1..7378d63f54e 100644 --- a/app/javascript/packages/components/troubleshooting-options.jsx +++ b/app/javascript/packages/components/troubleshooting-options.jsx @@ -11,6 +11,7 @@ import { BlockLink } from '@18f/identity-components'; /** * @typedef TroubleshootingOptionsProps * + * @prop {'h1'|'h2'|'h3'|'h4'|'h5'|'h6'=} headingTag * @prop {string} heading * @prop {TroubleshootingOption[]} options */ @@ -18,10 +19,12 @@ import { BlockLink } from '@18f/identity-components'; /** * @param {TroubleshootingOptionsProps} props */ -function TroubleshootingOptions({ heading, options }) { +function TroubleshootingOptions({ headingTag = 'h2', heading, options }) { + const HeadingTag = headingTag; + return (
-

{heading}

+ {heading}