@types/react-textfit
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-textfit

Weekly Downloads

10,950

Version

1.1.4

License

MIT

Unpacked Size

3.36 kB

Total Files

5

Last publish

Collaborators

  • types