svelte-wrap-balancer Svelte Themes

Svelte Wrap Balancer

Simple Svelte Component That Makes Titles More Readable.

Svelte Wrap Balancer

Svelte port of React Wrap Balancer.

Svelte Wrap Balancer is a simple Svelte Component that makes your titles more readable in different viewport sizes. It improves the wrapping to avoid situations like single word in the last line, makes the content more “balanced”:

Installation

npm install svelte-wrap-balancer

Usage

<script>
    import Balancer from 'svelte-wrap-balancer'
</script>

<h1>
    <Balancer>Svelte Wrap Balancer</Balancer>
</h1>

License

MIT

Top categories

Loading Svelte Themes