Sometimes it's useful to be able to render markup (e.g. an anchor tag) for label or message. Therefore a named slot
can be used. Make sure not to define the corresponding property on the host element when a named slot is used
(because a property definition is preferred over a named slot). For named slots only
phrasing content is
allowed.
Some label with a link.Some description with a link.Some error message with a link.
prev
next
Open in Stackblitz
<!doctype html>
<htmllang="en"class="auto"><head><title></title></head><bodyclass="bg-base"><p-textarea-wrapperstate="error"><spanslot="label"id="some-label-id"> Some label with a
<ahref="https://designsystem.porsche.com"> link
</a> .
</span><spanslot="description"id="some-description-id"> Some description with a
<ahref="https://designsystem.porsche.com"> link
</a> .
</span><textareaname="some-name"aria-labelledby="some-label-id"aria-describedby="some-description-id some-message-id"></textarea><spanslot="message"id="some-message-id"> Some error message with a
<ahref="https://designsystem.porsche.com"> link
</a> .
</span></p-textarea-wrapper><script></script></body></html>