Porsche Design SystemSearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
ConfiguratorExamplesUsageAccessibilityAPI
Radio Button Wrapper Table of Contents Slots 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 label with a link.Some error message with a link.
Open in Stackblitz
<!doctype html>
<html lang="en" class="auto">
<head>
  <title></title>
</head>
<body class="bg-base">

<p-radio-button-wrapper state="error">
  <span slot="label" id="some-label-id-1">
    Some label with a 
    <a href="https://designsystem.porsche.com">
      link
    </a>
    .
  </span>
  <input type="radio" name="some-name" aria-labelledby="some-label-id-1" />
</p-radio-button-wrapper>

<p-radio-button-wrapper label="Some label" state="error" class="mt-fluid-sm">
  <span slot="label" id="some-label-id-2">
    Some label with a 
    <a href="https://designsystem.porsche.com">
      link
    </a>
    .
  </span>
  <input type="radio" name="some-name" aria-labelledby="some-label-id-2" aria-describedby="some-message-id" />
  <span slot="message" id="some-message-id">
    Some error message with a 
    <a href="https://designsystem.porsche.com">
      link
    </a>
    .
  </span>
</p-radio-button-wrapper>
<script>

</script>
</body>
</html>
Loading 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.
Open in Stackblitz
<!doctype html>
<html lang="en" class="auto">
<head>
  <title></title>
</head>
<body class="bg-base">

<p-radio-button-wrapper label="Some label" loading="true">
  <input type="radio" name="some-name" />
</p-radio-button-wrapper>

<p-radio-button-wrapper label="Some label" class="mt-fluid-sm">
  <input type="radio" name="some-name" checked />
</p-radio-button-wrapper>
<script>

</script>
</body>
</html>
Global settingsThemeChanges the theme of the application and any Porsche Design System component. It's possible to choose between forced theme light and dark. It's also possible to use auto, which applies light or dark theme depending on the operating system settings automatically.LightDarkAuto (sync with operating system)DirectionThe dir global attribute in HTML changes the direction of text and other content within an element. It's most often used on the <html> tag to set the entire page's direction, which is crucial for supporting languages that are written from right to left (RTL), such as Arabic and Hebrew. For example, using <html dir="rtl"> makes the entire page display from right to left, adjusting the layout and text flow accordingly.LTR (left-to-right)RTL (right-to-left)Text ZoomTo ensure accessibility and comply with WCAG 2.2 AA standards, it is mandatory for web content to support text resizing up to at least 200% without loss of content or functionality. Using relative units like rem is a best practice for achieving this, as they allow the text to scale uniformly based on the user's browser settings.100%130%150%200%