@scritto/core
v0.1.0
Published
Framework-agnostic rolling text web component
Maintainers
Readme
@scritto/core
SwiftUI-style rolling text for the web. Numbers and strings. Framework-agnostic, zero runtime dependencies, SSR-safe.
This is the engine. Bindings: @scritto/react, @scritto/vue, @scritto/svelte, @scritto/solid.
Install
npm install @scritto/coreUsage
<scritto-text></scritto-text>
<script type="module">
import "@scritto/core";
const text = document.querySelector("scritto-text");
text.value = "1,000";
text.update("2,000");
</script><scritto-flow>
Used <scritto-text></scritto-text> billion tokens this month.
</scritto-flow>See the root README.
