svelte-animated-counter
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Svelte Animated Counter

A simple animated counter component for Svelte 5.

Installation

npm install svelte-animated-counter

Usage

<Counter.Root>
  {#snippet children(o)}
    {#if o.type === 'item'}
      <Counter.Item value={o.value} />
    {:else}
      <Counter.Separator />
    {/if}
  {/snippet}
</Counter.Root>

View demo here

Package Sidebar

Install

npm i svelte-animated-counter

Weekly Downloads

24

Version

0.3.0

License

MIT

Unpacked Size

13.4 kB

Total Files

19

Last publish

Collaborators

  • calvojp