---
title: "Number field animated icon"
description: "Number field animated icon (Forms & input). Stepping the value up. Light: the up stepper kicks up as it is pressed and springs back; a beat later the value ticks over like a counter: the 1 rides up and fades out, then the 2 rises from below, fades in and lands, and the 2 stays. Strong: the stepper winds down before a harder kick, and the 2 lands with a small bounce. The preview reset fades the 1 back in."
canonical: https://generativeicons.com/icons/number-field/
---

# Number field animated icon

Stepping the value up. Light: the up stepper kicks up as it is pressed and springs back; a beat later the value ticks over like a counter: the 1 rides up and fades out, then the 2 rises from below, fades in and lands, and the 2 stays. Strong: the stepper winds down before a harder kick, and the 2 lands with a small bounce. The preview reset fades the 1 back in.

- Id: `number-field`
- Category: Forms & input
- Search terms: number input, numeric input, numeric field, stepper, increment, decrement, quantity, quantity selector, counter, number spinner, step up
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/number-field.lottie (dotLottie, 6727 bytes, sha256 295181cb8f13010cefb36811d346aa83b0f34480e64efbea177223fc28bd4a39)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add number-field
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/number-field.mjs';

export function NumberFieldIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/number-field.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/number-field/ · https://generativeicons.com/api/icons/number-field
