1.0.0 • Published 4 months ago

react-fitty-types v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

@types/react-fitty

TypeScript type definitions for react-fitty.

Installation

npm install --save-dev @types/react-fitty

or with yarn:

yarn add --dev @types/react-fitty

Usage

import { ReactFitty } from "react-fitty";

const Example = () => {
  return (
    <ReactFitty minSize={10} maxSize={100}>
      Hello World
    </ReactFitty>
  );
};

API

FittyProps

PropTypeDescription
minSizenumberMinimum font size in pixels.
maxSizenumberMaximum font size in pixels.
multiLinebooleanWhether multiple lines should be fitted.
observeMutationsMutationObserverInitMutation observer options for detecting changes.

Contributing

If you find any issues with these types, feel free to submit a PR or open an issue.

License

MIT

1.0.0

4 months ago