Include html in Input's label #1692
Unanswered
patrykkalinowski
asked this question in
Q&A
Replies: 3 comments 1 reply
-
To create a clickable link, you can use HTML markup in your label, such as the tag with the href attribute to specify the link URL. You can then use CSS to style the link as desired. |
Beta Was this translation helpful? Give feedback.
1 reply
-
The <script>
import { TextInput, Link } from "carbon-components-svelte";
</script>
<TextInput placeholder="Enter user name...">
<svelte:fragment slot="labelText">
My label with a <Link size="sm" href="https://www.carbondesignsystem.com/">link</Link>
</svelte:fragment>
</TextInput> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'd like to include links in my input labels. Currently HTML tags are generated as-is - is it possible to have them parsed?
Beta Was this translation helpful? Give feedback.
All reactions