Go Main page
Go Main page

Web components

cover

components

Input Password

v.1.0.0 | Saturn

Import

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

Props

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

PropertyTypeDefaultDescription
variant
Required
String-InputPassword's variant theme
activeIcon
Required
InputPasswordIconType-Add icon active
disabledIcon
Required
InputPasswordIconType-Add icon disabled
inputVariantString-Set the Input's variant
errorBoolean-Specifies if the input element has error or not
disabledBoolean-Specifies if the input element is disabled 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
onInputTypeChange() => void-Function that is called when the input type changed
onInternalErrors
(errors: string) => void
-Function that is called when an internal error occurs
onIconClick(value: OnIconClickValueType) => void-Function that is called when user clicks on the icon to show/hide password
valueString or Number-Input's current value
ctvInputPasswordStylesProps-Modify styles for the default version of the component

Initialized extended props

PropertyTypeDefaultDescription
truncateBooleanfalseIndicates 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"