Porsche Design SystemSearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
ConfiguratorExamplesUsageAccessibilityAPI
Drilldown 🧪 The p-drilldown component is experimental and might be changed or removed in a future release. The p-drilldown component is meant for displaying an infinite multilevel structure in a drilldown menu that overlays the page content from the start side of the screen. It is a controlled component that gives you flexible control over its behavior. The basic concept of the component is to have a button that opens the p-drilldown with an infinite multilevel structure. The levels are generated out of p-drilldown-item which generates a list of cascade buttons to navigate to a deeper level, back buttons and a header section on mobile view. These items can be filled with e.g. p-drilldown-link, another p-drilldown-item or any HTML element. The visibility of p-drilldown can be controlled by its open property. It's obligatory that each p-drilldown-item has a unique identifier and label defined. Since it's a controlled component it's necessary to register an event listener for the dismiss and update event in order to get notified when p-drilldown needs to be closed or navigated to another hierarchy level.
Open in Stackblitz
<!doctype html>
<html lang="en" class="auto">
<head>
  <title></title>
</head>
<body class="bg-base">

<nav aria-label="Main">
  <p-button type="button" aria="{'aria-haspopup': 'dialog'}">
    Open Drilldown
  </p-button>
  <p-drilldown>
    <p-drilldown-item identifier="id-1" label="Some Label (1)">
      <p-drilldown-item identifier="id-1-1" label="Some Label (1-1)">
        <p-drilldown-link href="#">
          Some anchor (1-1)
        </p-drilldown-link>
        <p-drilldown-link>
          <a href="#">
            Some anchor (1-1)
          </a>
        </p-drilldown-link>
      </p-drilldown-item>
      <p-drilldown-item identifier="id-1-2" label="Some Label (1-2)">
        <p-drilldown-link href="#">
          Some anchor (1-2)
        </p-drilldown-link>
        <p-drilldown-link href="#">
          Some anchor (1-2)
        </p-drilldown-link>
        <p-drilldown-link href="#">
          Some anchor (1-2)
        </p-drilldown-link>
        <p-drilldown-item identifier="id-1-2-1" label="Some Label (1-2-1)">
          <p-drilldown-link href="#">
            Some anchor (1-2-1)
          </p-drilldown-link>
          <p-drilldown-link href="#">
            Some anchor (1-2-1)
          </p-drilldown-link>
        </p-drilldown-item>
        <p-drilldown-link href="#">
          Some anchor (1-2)
        </p-drilldown-link>
      </p-drilldown-item>
      <p-drilldown-link href="#">
        Some anchor (1-1)
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor (1-1)
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor (1-1)
      </p-drilldown-link>
    </p-drilldown-item>
    <p-drilldown-item identifier="id-2" label="Some Label (2)">
      <p-drilldown-link href="#">
        Some anchor (2)
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor (2)
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor (2)
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor (2)
      </p-drilldown-link>
    </p-drilldown-item>
    <p-drilldown-item identifier="id-3" label="Some Label (3)">
      <p-drilldown-link href="#">
        Some anchor (3)
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor (3)
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor (3)
      </p-drilldown-link>
    </p-drilldown-item>
    <p-drilldown-item identifier="id-4" label="Some Label (4)">
      <p-drilldown-link href="#">
        Some anchor (4)
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor (4)
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor (4)
      </p-drilldown-link>
    </p-drilldown-item>
    <p-drilldown-item identifier="id-5" label="Some Label (5)">
      <p-drilldown-link href="#">
        Some anchor (5)
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor (5)
      </p-drilldown-link>
    </p-drilldown-item>
  </p-drilldown>
</nav>
<script>
  const pButton = document.querySelector("p-button");
  const pDrilldown = document.querySelector("p-drilldown");
  pButton.addEventListener('click', () => (pDrilldown.open = true));
  pDrilldown.addEventListener('update', (e) => e.target.activeIdentifier = e.detail.activeIdentifier);
  pDrilldown.addEventListener('dismiss', () => (pDrilldown.open = false));
</script>
</body>
</html>
Browser Support ChromeEdgeSafariFirefoxChrome for AndroidSafari for iOS >= 120 >= 120 >= 17.4 >= 129 >= 120 >= 17.4
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%