@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>

Readme

Keywords

none

Package Sidebar

Install

npm i @douganderson444/fill-width

Weekly Downloads

0

Version

0.0.2

License

none

Unpacked Size

4.56 kB

Total Files

8

Last publish

Collaborators

  • douganderson444