EXEPERTAI LAB

Research alpha

Time Machine
EXEPERTAI LAB
GALLERY / COLLECTION
← Browse Astryx gallery
SideNav·component·@astryxdesign/core

Side Nav Heading

Product/suite/account heading with smart interaction boundary logic for links and a menu popover.

Open in Playground @astryxdesign/core/SideNav

Showcases and examples

2 documented examples

Side Nav Heading

Demonstrates SideNavHeading with an app name, logo icon, superheading, and subheading.

Preview loads on approachPreview loads on approach
Exact source · side-nav-heading-showcase
// Copyright (c) Meta Platforms, Inc. and affiliates.

'use client';

import {SideNav, SideNavHeading} from '@astryxdesign/core/SideNav';
import {HStack} from '@astryxdesign/core/Layout';

function AppIcon() {
  return (
    <svg
      width="20"
      height="20"
      viewBox="0 0 24 24"
      fill="none"
      stroke="currentColor"
      strokeWidth="1.5">
      <path
        strokeLinecap="round"
        strokeLinejoin="round"
        d="M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"
      />
    </svg>
  );
}

export default function SideNavHeadingShowcase() {
  return (
    <HStack gap={6}>
      <SideNav
        header={
          <SideNavHeading
            heading="Analytics"
            icon={<AppIcon />}
            headingHref="/"
          />
        }>
        {null}
      </SideNav>
      <SideNav
        header={
          <SideNavHeading
            heading="Analytics"
            icon={<AppIcon />}
            superheading="Acme Corp"
            subheading="Production"
            headingHref="/"
          />
        }>
        {null}
      </SideNav>
    </HStack>
  );
}

Usage

Product/suite/account heading with smart interaction boundary logic for links and a menu popover.

Typed props

PropType and behavior
headingstring · required
Product/app name.
iconReactNode
Product/app icon.
Slot: Icon
headingHrefstring
Link for the heading.
superheadingstring
Text above the heading.
superheadingHrefstring
Link for the superheading.
subheadingstring
Text below the heading.
subheadingHrefstring
Link for the subheading.
menuReactNode
Menu content rendered inside a popover.
Slot: Button
headerEndContentReactNode
Content rendered at the trailing edge of the heading row, between text and chevron. Useful for badges, status indicators, or compact action buttons. Hidden when collapsed.
Slot: Button