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 error message with a link.
prev
next
Open in Stackblitz
<!doctype html>
<htmllang="en"class="auto"><head><title></title></head><bodyclass="bg-base"><p-radio-button-wrapperstate="error"><spanslot="label"id="some-label-id-1"> Some label with a
<ahref="https://designsystem.porsche.com"> link
</a> .
</span><inputtype="radio"name="some-name"aria-labelledby="some-label-id-1" /></p-radio-button-wrapper><p-radio-button-wrapperlabel="Some label"state="error"class="mt-fluid-sm"><spanslot="label"id="some-label-id-2"> Some label with a
<ahref="https://designsystem.porsche.com"> link
</a> .
</span><inputtype="radio"name="some-name"aria-labelledby="some-label-id-2"aria-describedby="some-message-id" /><spanslot="message"id="some-message-id"> Some error message with a
<ahref="https://designsystem.porsche.com"> link
</a> .
</span></p-radio-button-wrapper><script></script></body></html>
The loading prop is experimental and might be removed in a future release.
The loading property can be used to indicate that the current state change requires loading. It should be applied
exclusively to the radio button that is clicked and should remain visible until the checked state of that radio button
has changed.
Keep in mind that the loading state will only appear when the radio button is not checked.