Skip to content

feat: custom html label for input and textarea with modern form syntax #27061

@emeryao

Description

@emeryao

Prerequisites

Describe the Feature Request

Inline html template for label on ion-input

Describe the Use Case

with [email protected] I'm able to add some html and styles the label text like code below

<ion-item>
    <ion-label [position]="'stacked'">SomeField<small><i>Optional</i></small></ion-label>
    <ion-input></ion-input>
</ion-item>

but now with [email protected] the <ion-lable> component is discouraged and the [label] property of ion-input seems accepts strings only
so is there a workaround to get this done like before?

Describe Preferred Solution

No response

Describe Alternatives

No response

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