Number Field

Spring Counter

A counter with − and + buttons whose digit hops in the direction of the step and settles with an overshoot, so the change is visible out of the corner of your eye.

What you can change

  • label — the caption above the number
  • defaultValue — the starting value of the counter
  • step — how much one press changes the number by

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/number-009?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-number-009-* variables. A client component: useState keeps the value and a press counter. The hop is not a transition but a keyframe animation on a spring linear() curve; a press changes the digit's key, React mounts it anew and the animation starts from zero even in the middle of the previous one. The direction is carried by --vibeui-number-009-lift, so minus drops the digit and plus throws it up. The value lives in an <output> with aria-live, and the buttons switch off at the ends of the range.

Tags

  • number
  • counter
  • spring
  • stepper
  • animation
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…