react-fitty-types
v1.0.0
Published
Type definitions for react-fitty
Readme
@types/react-fitty
TypeScript type definitions for react-fitty.
Installation
npm install --save-dev @types/react-fittyor with yarn:
yarn add --dev @types/react-fittyUsage
import { ReactFitty } from "react-fitty";
const Example = () => {
return (
<ReactFitty minSize={10} maxSize={100}>
Hello World
</ReactFitty>
);
};API
FittyProps
| Prop | Type | Description |
| ------------------ | ---------------------- | ------------------------------------------------ |
| minSize | number | Minimum font size in pixels. |
| maxSize | number | Maximum font size in pixels. |
| multiLine | boolean | Whether multiple lines should be fitted. |
| observeMutations | MutationObserverInit | Mutation observer options for detecting changes. |
Contributing
If you find any issues with these types, feel free to submit a PR or open an issue.
