Skip to content

feat: standalone input component should support icons #26297

Closed
@EinfachHans

Description

@EinfachHans

Prerequisites

Describe the Feature Request

This is a Feature Request to v7 and #26283

To fully be able to get rid of the deprecated usage of form elements within the ion item it would be great to support icon's within these elements as well.

Describe the Use Case

This are inputs in our current app:

D0BB0629-2C4C-4877-B78F-B8F23BF8D3D1

Many Password Input's have a toggle icon to show the password at the end. Also a start icon can be great to personalize the form element more.

Describe Preferred Solution

I would prefer a slot solution where deverlopers are able to place something at the start or end slot, similar to the item. With this it would be easier to add a click handler to the icon (to for example toggle the input mode to show or hide a password)

Also it should be somehow possible to not focus the element on icon click. If i think of the password toggle icon, a click on that icon should not focus the element.

Describe Alternatives

An alternative could be two properites startIcon and endIcon, but i don't really think this is the right way, as then there also should be two events for clicking these.

Related Code

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions