Support slots.clearButton in <Textarea> component #5225
stefantschierschke
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’d love to request support for a small but important feature:
Feature Request
Allow the <Textarea /> component to accept a slots.clearButton prop, similar to how does.
Why it's needed
HeroUI's Input already allows us to override the default clear icon via:
slots={{ clearButton: () => }}
But Textarea does not currently expose the same slot. For design systems where clear buttons have to follow brand iconography or accessibility specs, it's important to control how the clear action is visually represented.
Proposed API
This would be 100% consistent with the Input component and greatly appreciated in theming-heavy setups.
Thanks!
Really appreciate your time and effort maintaining this amazing library!
Beta Was this translation helpful? Give feedback.
All reactions