1.1.0 • Published 12 months ago

fit-my-text v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Summary

A package that allows you to adjust the text to the width of the container. Decreases or increases the font size to fit the text in the container.

Install via NPM

  npm install fit-my-text

Usage

  import fitMyText from 'fit-my-text';

  fitMyText(element, options);

Options

OptionDefaultDescription
elementquerySelector for element (required)
min16The minimum font size in pixels
max512The maximum font size in pixels
selectorTypesingleDefines if you use single element or multiple elements (may be 'single' or 'multiple')

Options object

{
  min: 16,
  max: 512,
  selectorType: 'single'
}
1.1.0

12 months ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

1.0.0

3 years ago