Skip to content

Component: Locale-aware Currency Input #5

Open

Description

@sapatmohit

Component: Locale-aware Currency Input

Build a currency input component that formats and parses currency values based on the user's locale.

Requirements

  • TypeScript-first with exported props interface
  • Uses Intl.NumberFormat for currency formatting
  • Supports all ISO 4217 currency codes
  • RTL-aware
  • Accessible (proper labels, ARIA)
  • Tailwind CSS compatible

Expected API

<CurrencyInput
  value={1234.56}
  currency="EUR"
  locale="de-DE"
  onChange={(value) => setAmount(value)}
/>

Deliverables

  • Component source in src/registry/components/
  • Documentation page in content/docs/components/

See CONTRIBUTING.md.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    componentNew or modified componentcurrencyCurrency input and formatting componentsgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions