@douganderson444/fill-width
v0.0.2
Published
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.
Downloads
2
Readme
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:
- Javascript function
- Svelte Directive
- 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>