s-private API Documentation - v3.8.1
    Preparing search index...

    Function FormInputWithButton

    • A text input with an adjacent action button.

      Parameters

      Returns Element

      An input field with an action button

      Useful for inputs that need an associated action like:

      • URL input with fetch button
      • Search input with clear button
      • Password input with visibility toggle

      Integrates with GenericFormWrapper for form state preservation. Uses key-based re-mounting to sync preserved values without useEffect.

      <FormInputWithButton
      label="URL"
      htmlFor="url"
      name="url"
      buttonIcon={<FetchIcon />}
      onButtonClick={handleFetch}
      placeholder="https://example.com"
      />

      GenericFormWrapper for form integration