Closed TylerAPfledderer closed 2 years ago
Latest commit: 25bf8f44cabd9873249d5d5e5de07ad5e6926564
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
[Click here if you're a maintainer who wants to add another changeset to this PR](https://github.com/TylerAPfledderer/chakra-ui-typescale/new/feat/clamp-scale?filename=.changeset/gold-snakes-own.md&value=---%0A%22%40tylerapfledderer%2Fchakra-ui-typescale%22%3A%20patch%0A---%0A%0Afeat%3A%20use%20%60clamp()%60%20optionally%20for%20Heading%20sizes%0A)
Closes #40
This PR adds the
clamp()
functionality for both font sizes and line heights generated in thesizes
theming for theHeading
component.The boolean prop
isClamped
is added to be able to toggle between the clamp and Chakra's breakpoint array so the user can choose either allow for the smooth size change through various screen sizes, or change the font size based on a sensible breakpoint. This prop defaults totrue
.