docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a React component that provides a number input field supporting different regional number formats, specifically for European users who use comma as a decimal separator.
Create a component that:
The component should handle user typing naturally, allowing them to type values like "12,5" and have it work correctly.
import React from 'react';
export interface RegionalInputProps {
value?: number;
onChange?: (value: number | null) => void;
defaultValue?: number;
}
export const RegionalInput: React.FC<RegionalInputProps>;Provides numeric input functionality with validation and formatting support.
Provides the component framework.