- make run possible on react v18
npm install @namhong2001/react-textfit@1npm install @types/namhong2001__react-textfit@npm:@types/react-textfit --DOriginate from malte-wessel/react-textfit but fully rewritten with function component and hooks by typescript
npm install @namhong2001/react-textfitIncluded
mode(single|multi) force singleline or multiline. defaultmultimin(Number) minimum font size. default0max(Number) maximum font size. default300
<Textfit>
{myText}
</Textfit>
<Textfit mode="single">
{myText}
</Textfit>
<Textfit mode="single" min={10} max={50}>
{myText}
</Textfit>MIT