MCPcopy
hub / github.com/react-hook-form/react-hook-form / MuiCurrencyFormat

Function MuiCurrencyFormat

examples/V7/normalizeField.tsx:49–67  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

47}
48
49const MuiCurrencyFormat = (props) => {
50 const { onChange, value, ...rest } = props;
51
52 return (
53 <NumberFormat
54 customInput={TextField}
55 {...rest}
56 value={value}
57 fullWidth
58 thousandSeparator={true}
59 decimalScale={2}
60 onValueChange={(target) => {
61 onChange(target.floatValue);
62 }}
63 isNumericString
64 prefix="$ "
65 />
66 );
67};

Callers

nothing calls this directly

Calls 1

onChangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…