Grapes homepage1.57.0
  • Guide
  • Tokens
  • Components
    Grapes on GithubGrapes on Figma
    Interaction
    • Button
    • IconButton
    • FloatingActionBar
    • Link
    Icons
    • Icon
    • HighlightIcon
    Form
    • AmountInput
    • Autocomplete
    • AutocompleteMultiple
    • AutocompletePlace
    • CheckboxBox
    • CheckboxField
    • DatePicker
    • FormField
    • Input
    • OptionGroup
    • PasswordInput
    • PhoneInput
    • RadioBox
    • RadioField
    • RadioGroup
    • Select
    • SwitchField
    • TextArea
    • TextInput
    • Upload
    • UploadButton
    Feedback
    • Badge
    • Banner
    • Callout
    • EmptyState
    • Modal
    • ModalSlideshow
    • DeprecatedModalSlideshow
    • PageModal
    • Skeleton
    • Tag
    • Toast
    • Tooltip
    Data display
    • Accordion
    • Avatar
    • Box
    • Calendar
    • CalendarRange
    • CollapsibleList
    • FileCard
    • InfoTip
    • ListBox
    • ListView
    • Panel
    • SidePanel
    • DeprecatedPreview
    • Table
    • Timeline
    • useDateFormatter
    Navigation
    • DropdownItem
    • DropdownMenu
    • Navigation
    • NavigationItem
    • Popover
    • Tabs

    PasswordInput

    The PasswordInput creates an input of type password with a set of rules. The eye icon lets you display the password if needed.

    View source code
    • Usage
    • Props
    • value
      string

      The current value

    • className
      string

      className for the element.

    • fit
      "content" | "parent"

      Whether the PasswordInput should fit its parent or content.

      Default: content
    • id
      string

      The id of the PasswordInput.

    • isDisabled
      boolean

      Whether the Input should be disabled.

      Default: false
    • name
      string

      The name of the PasswordInput, used when submitting an HTML form.

    • onBlur
      FocusEventHandler<HTMLInputElement>

      Handler that is called when the input loses focus.

    • onChange
      ChangeEventHandler<HTMLInputElement>

      Handler that is called when the value changes.

    • onFocus
      FocusEventHandler<HTMLInputElement>

      Handler that is called when the input receives focus.

    • onKeyDown
      KeyboardEventHandler<HTMLInputElement>

      Handler that is called when a key is pressed.

    • placeholder
      string

      Temporary text that occupies the PasswordInput when it is empty.

    • ref
      Ref<HTMLInputElement>

    • rules
      PasswordRule[]

      The rules to apply.

      Default: []