Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

numberformat chakra

You are probably trying to add the styles of Chakra's "Input" component to a NumberFormat

This is the way you do it:


<NumberFormat
  customInput={Input} //...
  placeholder="Price"
  decimalScale={2}
  prefix={"$"}
  name={name}
  value={value}
  onChange={onChange}
/>
 
PREVIOUS NEXT
Tagged: #numberformat #chakra
ADD COMMENT
Topic
Name
5+9 =