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)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%