Hello!
Example:
Obs: Input is the component for create inputs and special management for mask inputs (contains format and anothers props...).
<Input
type="text"
label={__("% Ideal de cobertura")}
id="name"
name="name"
format={"### %"}
required
onChange={
(event) => {
}
}
value="eduardo"
/>
this format result:

Its possible use this component for this?
i need only for number 0-100 with percent format.
Thanks!
I solve this problem using:
format={
(val) => {
if (val <= 100) {
if (val && val.length > 3)
return this.state.coverage + " %";
return val + " %";
} else {
return this.state.coverage + " %";
}
}
}
It would be nice if Percent was supported with this component
Most helpful comment
It would be nice if Percent was supported with this component