Describe the bug
While the as prop works for PricingOptions.FeatureListGroupHeading. The TS compiler is complaining that as is not supported for this component.
I think we need to adjust https://github.com/primer/brand/blob/main/packages/react/src/PricingOptions/PricingOptions.tsx#L516
to support HeadingProps as well.
Reproduction steps
1. Create a minimal pricing options component
2. Add the following code to recreate the TS error
<PricingOptions.FeatureListGroupHeading as="h6">
Pricing Options Feature List Group Heading with H6
</PricingOptions.FeatureListGroupHeading>
Expected behavior
Despite this code working fine in runtime, typescript throws an error.
Screenshots
Browsers
No response
OS
No response
Describe the bug
While the
asprop works forPricingOptions.FeatureListGroupHeading. The TS compiler is complaining thatasis not supported for this component.I think we need to adjust https://github.com/primer/brand/blob/main/packages/react/src/PricingOptions/PricingOptions.tsx#L516
to support
HeadingPropsas well.Reproduction steps
Expected behavior
Despite this code working fine in runtime, typescript throws an error.Screenshots
Browsers
No response
OS
No response