BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/adn-ui/number-field

Number Field

adn-ui/number-field
FreeComponent

A numeric input element with increment and decrement buttons, and scrub area.

Live preview

live · rendered by the registry
Rendered by adn-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.awaiden.com/r/number-field.json

Source

src/components/ui/number-field/number-field.tsxui.awaiden.com/r/number-field.json
1"use client";
2
3import "./number-field.css";
4import { NumberField as BaseNumberField } from "@base-ui/react/number-field";
5import type React from "react";
6import { cn } from "tailwind-variants";
7
8import { NumberFieldContext, useNumberFieldContext } from "./number-field.context";
9import { numberFieldVariants, type NumberFieldVariants } from "./number-field.variants";
10
11export type NumberFieldProps = NumberFieldVariants &
12 React.ComponentProps<typeof BaseNumberField.Root>;
13
14export const NumberFieldRoot = ({ children, className, size, ...props }: NumberFieldProps) => {
15 const slots = numberFieldVariants({ size });
16
17 return (
18 <NumberFieldContext.Provider value={{ slots }}>
19 <BaseNumberField.Root className={cn(slots.root(), className)} {...props}>
20 {children}
21 </BaseNumberField.Root>
22 </NumberFieldContext.Provider>
23 );
24};
25
26export type NumberFieldGroupProps = React.ComponentProps<typeof BaseNumberField.Group>;
27
28export const NumberFieldGroup = ({ className, ...props }: NumberFieldGroupProps) => {
29 const { slots } = useNumberFieldContext();
30 return <BaseNumberField.Group className={cn(slots.group(), className)} {...props} />;
31};
32
33export type NumberFieldInputProps = React.ComponentProps<typeof BaseNumberField.Input>;
34
35export const NumberFieldInput = ({
36 className,
37 children: _children,
38 dangerouslySetInnerHTML: _dangerouslySetInnerHTML,
39 ...props
40}: NumberFieldInputProps & { children?: React.ReactNode; dangerouslySetInnerHTML?: any }) => {
41 const { slots } = useNumberFieldContext();
42 return <BaseNumberField.Input className={cn(slots.input(), className)} {...props} />;
43};
44
45export type NumberFieldDecrementProps = React.ComponentProps<typeof BaseNumberField.Decrement>;
46
47export const NumberFieldDecrement = ({
48 children,
49 className,
50 ...props
51}: NumberFieldDecrementProps) => {
52 const { slots } = useNumberFieldContext();
53 return (
54 <BaseNumberField.Decrement className={cn(slots.decrement(), className)} {...props}>
55 {children ?? (
56 <svg className="h-3.5 w-3.5 stroke-current" fill="none" strokeWidth="2" viewBox="0 0 24 24">
57 <path d="M5 12h14" />
58 </svg>
59 )}
60 </BaseNumberField.Decrement>
61 );
62};
63
64export type NumberFieldIncrementProps = React.ComponentProps<typeof BaseNumberField.Increment>;
65
66export const NumberFieldIncrement = ({
67 children,
68 className,
69 ...props
70}: NumberFieldIncrementProps) => {
71 const { slots } = useNumberFieldContext();
72 return (
73// … truncated

What it pulls in

npm packages

  • @base-ui/react
  • tailwind-variants

Files it writes

  • src/components/ui/number-field/number-field.tsx
  • src/components/ui/number-field/number-field.variants.ts
  • src/components/ui/number-field/number-field.context.ts
  • src/components/ui/number-field/number-field.css
  • src/components/ui/number-field/index.ts

Facts

Registry
adn-ui
Type
registry:ui
Access
Free
Files written
5
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

Docs on adn-ui ui.awaiden.com awaiden/adn-ui on GitHub Raw registry item This item as JSON

More from adn-ui

All 48 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionadn-uiComponentsFree2 deps · 5 files
Alert Dialogalert-dialogadn-uiComponentsFree2 deps · 5 files
Aspect Ratioaspect-ratioadn-uiComponentsFree1 dep · 4 files
Autocompleteautocompleteadn-uiComponentsFree2 deps · 5 files
Avataravataradn-uiComponentsFree2 deps · 5 files
Badgebadgeadn-uiComponentsFree1 dep · 4 files
Breadcrumbbreadcrumbadn-uiComponentsFree1 dep · 5 files
Buttonbuttonadn-uiComponentsFree1 dep · 4 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex