-
Notifications
You must be signed in to change notification settings - Fork 478
Open
Labels
Type: EnhancementSmall enhancement to existing component or featureSmall enhancement to existing component or feature
Description
Tremor Version
latest
Link to minimal reproduction
.
Steps to reproduce
I have a NumberInput and I want the German number format. In German, they use comma , instead of . fr their float numbers.
Code
const handleNumberInputChange = (property: string, value: number) => {
// Currently, the user enters numbers in this format 1.1 | 2.2
// However, I want him that format 1,1 | 2,2
dispatch(updatePanelMeasures({ ...measures, [property]: value }))
}
<NumberInput
icon={TextQuote}
placeholder='1.1'
max={1}
min={0.1}
step={0.1}
className='mt-2 min-h-11'
value={measures.border}
onValueChange={(border) => handleNumberInputChange("border", border)}
/>
What is expected?
.
What is actually happening?
.
What browsers are you seeing the problem on?
No response
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
Type: EnhancementSmall enhancement to existing component or featureSmall enhancement to existing component or feature