Fit given text inside a parent container, obeying implict and explicit constraints.
npm install boundless-fitted-textTHIS IS AN AUTOGENERATED FILE. EDIT INDEX.JS INSTEAD.
The most common use case for this class is fitting single-line text of unknown/variable length into a button or heading with finite boundaries.
_Note: only top-level props are in the README, for the full list check out the website._
There are no required props.
| Name | Type | Default Value | Description |
|---|---|---|---|
| component | | | any valid HTML tag name or a React component factory, anything that can be passed as the first argument to React.createElement |
| maxFontSize | | | an upper bound (in pixels) for how large the text is allowed to grow |