Examples

Example 1 - basic example
Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur

Example 2 - non-wrapping text
Lorem ipsum dolor sit amet, consectetur

Example 3 - recalculating on container change

Demonstrates:

Lorem ipsum dolor sit amet, consectetur

Example 4 - recalculating on content change

Change the input text and the font size will be updated to fit the text in the div

Lorem ipsum dolor sit amet, consectetur

Example 5 - fails to fit text because fontSizeMin is too big. Shows a message in the console.
Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur