Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label slot on sl-input #248

Closed
tstewart-klaudhaus opened this issue Oct 14, 2020 · 0 comments
Closed

Label slot on sl-input #248

tstewart-klaudhaus opened this issue Oct 14, 2020 · 0 comments
Assignees
Labels
feature Feature requests.

Comments

@tstewart-klaudhaus
Copy link

Is your feature request related to a problem? Please describe.
It would be great to specify custom content as the label of an input (and maybe other similar labelled components) e.g. in order to add an icon with tooltip for more information, or an tag to link out to somewhere else, or to have text formatting within the label, etc.

Describe the solution you'd like
If label were a slot, we could customise it in this way. Similar to how we can customise the summary of sl-detail instead of choosing to specify it as a text property.

Describe alternatives you've considered
Thought about using css ::after, but only allows simple content not HTML.

Ended up removing label from input and placing it within a div with my custom label content above.

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

No branches or pull requests

2 participants