0.0.2 • Published 1 year ago

@douganderson444/fill-width v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

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>