Porsche Design SystemSearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
ConfiguratorExamplesUsageAccessibilityAPI
Link Pure Table of Contents Link with specific icon If another icon needs to be implemented, just replace the default icon with another predefined icon. Per default, all icons are fetched from the Porsche Design System CDN. Just choose an icon name from the icon property. If you need to link to another icon hosted somewhere else, just set the whole icon path to the iconSource prop.
Some labelSome label
Open in Stackblitz
<!doctype html>
<html lang="en" class="auto">
<head>
  <title></title>
</head>
<body class="bg-base">

<p-link-pure href="https://porsche.com" icon="phone">
  Some label
</p-link-pure>

<p-link-pure href="https://porsche.com" icon-source="assets/icon-custom-kaixin.svg" hide-label="true">
  Some label
</p-link-pure>
<script>

</script>
</body>
</html>
Framework routing (anchor nesting) To support custom anchor tags (e.g. framework specific routing) you can provide them as a slotted element (recommended) of the component.
Open in Stackblitz
<!doctype html>
<html lang="en" class="auto">
<head>
  <title></title>
</head>
<body class="bg-base">

<p-link-pure>
  <a href="https://porsche.com">
    Some label
  </a>
</p-link-pure>
<script>

</script>
</body>
</html>
Examples how to use with Framework specific router and "active state" support Angular
<p-link-pure [active]="rla.isActive"> <a routerLink="/path/to/heaven" routerLinkActive #rla="routerLinkActive"></a> </p-link-pure>
React
<PLinkPure active={isActive}> <Link to="/path/to/heaven">Some label</Link> </PLinkPure>
VueJs
<router-link :to="/path/to/heaven" v-slot="{ href, navigate, isActive }"> <p-link-pure :href="href" @click="navigate" :active="isActive">Some label</p-link-pure> </router-link>
Link Pure with custom clickable/focusable area Sometimes it might be useful to enlarge the clickable/focusable area of a link to fulfill accessibility guidelines. Therefore a custom padding can be set on the host element.
Some label
Open in Stackblitz
<!doctype html>
<html lang="en" class="auto">
<head>
  <title></title>
</head>
<body class="bg-base">

<p-link-pure href="https://porsche.com" class="p-static-md">
  Some label
</p-link-pure>
<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)DirectionChanges the direction of HTML elements, mostly used on<html> tag to support languages which are read from right to left like e.g. Arabic.LTR (left-to-right)RTL (right-to-left)AutoText ZoomChanges the text size and values with unit rem or em relatively. This setting can be defined in browser settings for any website or by an application itself on<html> tag. To achieve WCAG 2.2 AA compliance it's obligatory to support text zoom up to at least 200%.100%130%150%200%