@douganderson444/fill-width
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Svelte Fill Width

Use to fill the width of an HTML Element. No matter what size the font is, it will always fill the width of the given container.

Use

Use as a:

  1. Javascript function
  2. Svelte Directive
  3. Svelte Component
// pass the width you want to fit, js takes care of the rest
<div>
	A big container
	<div use:fillWidth={{ width: number }}>Some short text</div>
</div>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    1

Package Sidebar

Install

npm i @douganderson444/fill-width

Weekly Downloads

3

Version

0.0.2

License

none

Unpacked Size

4.56 kB

Total Files

8

Last publish

Collaborators

  • douganderson444