# Component/NumericInput > Props: component-numericinput.props.txt ## Examples ### Addon ```tsx { args: { prefix: '왕복', suffix: '원', placeholder: '텍스트를 입력해주세요.' } } ``` ### Addon With Width ```tsx { args: { width: 500, prefix: '왕복', suffix: '원', placeholder: '텍스트를 입력해주세요.' } } ``` ### Allow Empty ```tsx { args: { allowEmpty: true, value: 0 } } ``` ### Base ```tsx { args: { placeholder: '텍스트를 입력해주세요.' } } ``` ### Decimal Scale ```tsx { args: { decimalScale: 0 } } ``` ### Disabled ```tsx { args: { disabled: true, prefix: '왕복', suffix: '원', placeholder: '텍스트를 입력해주세요.' } } ``` ### Entered Disabled ```tsx { args: { disabled: true, prefix: '왕복', suffix: '원', value: 123456789, placeholder: '텍스트를 입력해주세요.' } } ``` ### Error ```tsx { args: { status: 'error', prefix: '왕복', suffix: '원', placeholder: '텍스트를 입력해주세요.' } } ``` ### Focus ```tsx { render: args => { const ref1 = useRef(null); const ref2 = useRef(null); return
; } } ``` ### Is Allowed ```tsx { args: { isAllowed: ({ floatValue }) => { return !floatValue || floatValue <= 100; } } } ``` ### Right Alignment ```tsx { args: { prefix: '왕복', suffix: '원', alignment: 'right', placeholder: '텍스트를 입력해주세요.' } } ``` ### Set Value With Name ```tsx { render: args => { const [value, setValue] = useState({ apple: 0, banana: 0 }); const handleChange = (value: number, event: ChangeEvent) => { event.persist(); const name = event.target.name; setValue(prev => ({ ...prev, [name]: value })); }; return <> ; }, args: { prefix: '가격', suffix: '원', placeholder: '텍스트를 입력해주세요.', allowEmpty: false } } ``` ### Size ```tsx { render: () => } ``` ### Whether Negative Numbers Are Allowed ```tsx { args: { allowNegative: false } } ``` ### Width ```tsx { args: { width: 500, placeholder: '텍스트를 입력해주세요.' } } ```