-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
enhancementNew feature or requestNew feature or requestlibrarynon-closableThis task is exempt from becoming stale or automatically closed.This task is exempt from becoming stale or automatically closed.
Description
Is your feature request related to a problem? Please describe.
When using an action icon for either prefix or suffix, the displayed text in the tooltip is set by default and cannot be changed. In some scenarios it would be very helpful to do it but with the current API it is not possible.
Describe the solution you'd like
We should make some changes in the way the actions for the prefix and suffix are declared.
The proposed idea is removing prefixIcon
, suffixIcon
, onClickPrefix
, onClickPrefix
and follow this pattern instead, like other components do:
type Props = {
...
suffix: { icon: SVG | string; onClick?: () => void; title: string },
prefix: { icon: SVG | string; onClick?: () => void; title: string },
...
};
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestlibrarynon-closableThis task is exempt from becoming stale or automatically closed.This task is exempt from becoming stale or automatically closed.