PasswordInput

A password input type component

Props#

PropTypeDefaultDescription
errorBorderColorstringThe border color when the input is invalid. Use color keys in `theme.colors`
focusBorderColorstringThe border color when the input is focused. Use color keys in `theme.colors`
htmlSizenumberThe native HTML size attribute to be passed to the input
isDisabledbooleanfalseIf true, the form control will be disabled. This has 2 side effects: - The FormLabel will have `data-disabled` attribute - The form element (e.g, Input) will be disabled
isInvalidbooleanfalseIf true, the form control will be invalid. This has 2 side effects: - The FormLabel and FormErrorIcon will have `data-invalid` set to true - The form element (e.g, Input) will have `aria-invalid` set to true
isReadOnlybooleanfalseIf true, the form control will be readonly
isRequiredbooleanfalseIf true, the form control will be required. This has 2 side effects: - The FormLabel will show a required indicator - The form element (e.g, Input) will have `aria-required` set to true
leftAddonstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>
viewIconstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>
viewOffIconstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>

Was this helpful?