Ask Natuna

Ask about the design system

Hi, I am Natuna.

Ask me about the design system: components, tokens, statuses, and how to use them.

Natuna can be wrong. The docs are the source of truth.

Skip to content
  • IntroductionPage
  • Ask NatunaAsk about the design systemPage
  • FoundationColor, type, number, effectPage
  • Components overviewPage
  • ThemesLight and dark modePage
  • NamingProperty and page namesPage
  • Privacy statementPage
  • Text-safe stepsFirst AA and AAA step per color rampSection
  • AccessibilityWCAG 2.2 AAA rulesSection
  • Dark modeThemesSection
  • Using it todayFigma file and React codeSection
  • Component statusDesign status and In ReactSection

Arrow keys to move, Enter to open, Esc to close.

Amount Input

An input for money that formats the value as the user types.

Status
ReadyBuild day 20 of 21
Code
In React
Role
Form

Usage

This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.

Minimum Rp10.000

Pastes as editable layers. Shadows are not exported.

import { useState } from "react";
import { AmountInput } from "@/ui";

export default function AmountDemo() {
  const [amount, setAmount] = useState<number | null>(null);

  return <AmountInput label="Amount" value={amount} onChange={setAmount} hint="Minimum Rp10.000" />;
}

Variants and states

Every specimen is the real component from src/ui, held in one state.

size smempty, filled, error, disabled

Minimum Rp10.000

size mdempty, filled, error, disabled

Minimum Rp10.000

size lgempty, filled, error, disabled

Minimum Rp10.000

Pastes as editable layers. Shadows are not exported.

Props

label
string · default none
Required.
value, onChange
number | null · default none
The amount in rupiah, as a number.
defaultValue
number | null · default none
size
"sm" | "md" | "lg" · default "md"
Field 44, 48, 56.
hint, error
string · default none
placeholder
string · default "0"
disabled
boolean · default none

Figma to code

Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.

📐 Size
size
sm, md, or lg.
🎯 State
value, error, disabled
Hover and focus come from the browser.
Show Label, Label
label
Same.
Show Helper Text, Helper Text
hint
Pass to show.
Placeholder
placeholder
Same.

Accessibility

What the code in src/ui does today, and what it leaves to you.

Keyboard

  • A text input with inputMode=numeric, so phones show the number pad.

Screen readers

  • Named by the label. The Rp prefix is visual; say rupiah in the label if it is not obvious.

What you still need to do

  • Validate the minimum and maximum on the number, not on the formatted text.

When to use

Transfer, top-up, and payment amounts.

Do and don't

Do

  • Show the currency (Rp) next to the value.
  • Show the limit or balance close to the field.

Don't

  • Accept letters or more than one decimal separator.
  • Reformat the value in a way that moves the cursor.

4 of 28 other molecules, same role and ready ones first.

See all components

Status reflects the component tracker snapshot of 29 October 2026.