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.
index.d.ts
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): React.JSX.Element;
Additional Details
- Last updated: Wed, 06 Dec 2023 06:36:35 GMT
- Dependencies: @types/react
Credits
These definitions were written by yongtheskill.