Go Main page
Go Main page

Web components

cover

components

Input Currency

v.1.0.0 | Saturn

Import

1
import { InputCurrency } from '@kubit-ui-web/react-components';

Props

Let's delve into the versatility of the inputCurrency component by examining all its avalaible props.

PropertyTypeDefaultDescription
variant
Required
String-Variant of InputCurrency
currencyName
Required
InputCurrencyNameType-Currency abbreviation text
currencyPosition
Required
POSITIONS-Set currency position
inputVariantString-Set the Input's variant
disabledBoolean-Specifies if the input element is disabled or not
errorBoolean-Specifies if the input element has error or not
errorExecutionERROR_EXECUTION-When error handling
keyValidationString-Key validation
internalErrorExecutionINTERNAL_ERROR_EXECUTIONonChangeOnBlurWhen error handling
onError(error: boolean) => void-Function that is called when an error occurs
onInternalErrors
(errors: string) => void
-Function that is called when an internal error occurs
maxDecimalsNumber2Specifies the max number of decimal places
currencyNameContainerPositionInputContentPosition-Container position for currency
helpMessagePositionInputHelpMessagePosition-Position for helpMessage
ctvInputCurrencyStylesProps-Modify styles for the default version of the component

Initialized extended props

PropertyTypeDefaultDescription
truncateBooleantrueIndicates if text value is truncated when is too big
typeInputTypeTypePASSWORDThe type attribute specifies the type of input element to display. If the type attribute is not specified, the default type is text"
minNumber0Indicate the minimum number value allowed
ignoreKeysString-Keys ignores in the onKeyDown function