Skip to content

🐛 [BUG] - PricingOptions.FeatureListGroupHeading missing TS definition #1007

@seangolob

Description

@seangolob

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

Image

Browsers

No response

OS

No response

Metadata

Metadata

Assignees

Labels

brandbugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions