Porsche Design SystemSearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
ConfiguratorExamplesUsageAccessibilityAPI
Drilldown 🧪 Table of Contents Example with custom content To give more flexibility, it's possible to use custom slots slot="button" (renders a custom cascade button) and/or slot="header" (renders a custom header on mobile view). It's even possible to customize the layout structure for each layer individually with CSS variables (--p-drilldown-grid-template, --p-drilldown-gap). It's possible to adjust the layout behaviour for each layer (p-drilldown-item) individually by a CSS Custom Property (aka CSS Variable):
--p-drilldown-grid-template: auto / repeat(2, minmax(0, 1fr)); --p-drilldown-gap: 8px / 16px;
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 class="[--p-drilldown-grid-template:repeat(5,auto)_minmax(0,1fr)/auto]">
    <p-drilldown-item identifier="id-1" label="Motorsport" class="[--p-drilldown-grid-template:auto/repeat(2,minmax(0,1fr))] [--p-drilldown-gap:0px_16px]">
      <p-drilldown-item identifier="id-1-1" label="718">
        <p-model-signature slot="header" model="718"></p-model-signature>
        <p-button-tile slot="button" label="Some label" description="718" weight="semi-bold" compact="true" aspectRatio="{'base': '1/1', 's': '9/16'}" class="mb-fluid-sm">
          <img srcset="assets/porsche-963@2x.webp 2x" src="assets/porsche-963.webp" width="636" height="847" alt="Porsche 963" />
        </p-button-tile>
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
      </p-drilldown-item>
      <p-drilldown-item identifier="id-1-2" label="911">
        <p-model-signature slot="header" model="911"></p-model-signature>
        <p-button-tile slot="button" label="Some label" description="911" weight="semi-bold" compact="true" aspectRatio="{'base': '1/1', 's': '9/16'}" class="mb-fluid-sm">
          <img srcset="assets/porsche-963@2x.webp 2x" src="assets/porsche-963.webp" width="636" height="847" alt="Porsche 963" />
        </p-button-tile>
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
      </p-drilldown-item>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#" aria-current="page">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
    </p-drilldown-item>
    <p-drilldown-item identifier="id-2" label="Some label">
      <p-drilldown-item identifier="id-2-1" label="Some label">
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
      </p-drilldown-item>
      <p-drilldown-item identifier="id-2-2" label="Some label">
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
        <p-drilldown-link href="#">
          Some anchor
        </p-drilldown-link>
      </p-drilldown-item>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
    </p-drilldown-item>
    <p-drilldown-item identifier="id-3" label="Some label">
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
    </p-drilldown-item>
    <p-drilldown-item identifier="id-4" label="Some label">
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
    </p-drilldown-item>
    <p-drilldown-item identifier="id-5" label="Some label">
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
      <p-drilldown-link href="#">
        Some anchor
      </p-drilldown-link>
    </p-drilldown-item>
    <p-link href="#" variant="secondary" icon="external" class="self-end">
      Some external anchor
    </p-link>
  </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>
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%