Skip to content

Conversation

GusttavoCastilho
Copy link

Description

This PR adds a clear (X) button and an onClear handler to the <AutocompleteInput /> component.

Related Issue

Fixes #268

Summary of changes

  • Added an optional onClear prop to AutocompleteInputProps.
  • Render a clear (X) button inside the input container when the input has a value and onClear is provided.
  • The button uses a Unicode × character for maximum compatibility (no SVG or extra dependencies).
  • The button is accessible and styled to match the input.
  • Updated and added tests to cover the new functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add (X) button / onClear handler
1 participant