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: Thu, 27 Jan 2022 22:01:26 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by yongtheskill.