Skip to content

Web component for making the inner text fit the width of the element

Notifications You must be signed in to change notification settings

pomber/full-width-text

Repository files navigation

<full-width-text>

Makes the inner text fit the width of the element

Demo

https://pomber.github.io/full-width-text/

Install

Install the component using Bower:

$ bower install full-width-text --save

Usage

  1. Import web components' polyfill (if needed):
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
  1. Import element:
<link rel="import" href="bower_components/full-width-text/full-width-text.html">
  1. Use it:
<full-width-text>Lorem Ipsum</full-width-text>

About

Web component for making the inner text fit the width of the element

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages