Installation
npm install --save @types/react-textfit
Summary
This package contains type definitions for react-textfit (https://github.com/malte-wessel/react-textfit).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-textfit.
import * as React from "react";
export interface TextfitProps extends React.HTMLAttributes<HTMLDivElement> {
mode?: "single" | "multi";
forceSingleModeWidth?: boolean;
min?: number;
max?: number;
throttle?: number;
onReady?: (fontSize: number) => void;
}
export function Textfit(props: TextfitProps): JSX.Element;
Additional Details
- Last updated: Wed, 27 Sep 2023 07:12:04 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by yongtheskill.