solid-number-flow
v0.3.3
Published
A SolidJS component to transition, format, and localize numbers. Forked from @barvian/number-flow.
Downloads
186
Maintainers
Readme
solid-number-flow
A SolidJS component to transition, format, and localize numbers. Forked from @barvian/number-flow.
Quick start
Install it:
npm i solid-number-flow
# or
yarn add solid-number-flow
# or
pnpm add solid-number-flow
# or
bun add solid-number-flow
Use it:
import solid-number-flow from 'solid-number-flow'
export default function Page() {
const [value, setValue] = createSignal(398.43);
return (
<>
<button onClick={() => setValue(Math.random() * 1000)}>Random</button>
<NumberFlow value={value()} />
</>
)
}