1.1.4 • Published 5 months ago

@types/react-textfit v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

// Type definitions for react-textfit 1.1
// Project: https://github.com/malte-wessel/react-textfit
// Definitions by: yongtheskill <https://github.com/yongtheskill>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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.

1.1.4

5 months ago

1.1.1

8 months ago

1.1.3

6 months ago

1.1.2

7 months ago

1.1.0

2 years ago