Skip to content

XDSTopNav component - #107

Merged
cixzhang merged 1 commit into
mainfrom
XDSTopNav
Feb 17, 2026
Merged

cixzhang merged 1 commit into
mainfrom
XDSTopNav

Conversation

@czarandy

Copy link
Copy Markdown
Collaborator

Basic top nav, along with:

  • XDSTopNavItem - item that can be selected
  • XDSTopNavTitle - element to show title with optional logo/icon
  • XDSTopNavTitleIcon - standard circular icon style
image

@czarandy
czarandy requested a review from cixzhang February 13, 2026 17:49
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

New Components

TopNav
Metric Value
Bundle Size (ESM) 223B
Bundle Size (CJS) 400B
Lines of Code 300
Source Files 5
Complexity High (21)
Exports XDSTopNav, XDSTopNavTitle, XDSTopNavTitleIcon, XDSTopNavItem
Props Count N/A
Has Tests Yes
Has Stories Yes

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@xds/core 5.5KB 9.1KB 1.4KB

Accessibility Audit

Status: 1 accessibility violation(s) found.

XDSTopNav - 1 issue(s)
  • serious: Links must have discernible text
    • Rule: link-name

Component Previews

Includes interactive hover previews as animated GIFs.

XDSTopNav

Default

Screenshot:

Default

Interaction Preview: (view video)

Default interaction

Run yarn storybook and navigate to: core-xdstopnav--default

With Logo

Screenshot:

With Logo

Interaction Preview: (view video)

With Logo interaction

Run yarn storybook and navigate to: core-xdstopnav--with-logo

Title Only

Screenshot:

Title Only

Interaction Preview: (view video)

Title Only interaction

Run yarn storybook and navigate to: core-xdstopnav--title-only

Nav Item States

Screenshot:

Nav Item States

Interaction Preview: (view video)

Nav Item States interaction

Run yarn storybook and navigate to: core-xdstopnav--nav-item-states

Title Icon Sizes

Screenshot:

Title Icon Sizes

Interaction Preview: (view video)

Title Icon Sizes interaction

Run yarn storybook and navigate to: core-xdstopnav--title-icon-sizes

Full Example

Screenshot:

Full Example

Interaction Preview: (view video)

Full Example interaction

Run yarn storybook and navigate to: core-xdstopnav--full-example


Generated by PR Enrichment workflow | Storybook | View full report

@cixzhang

Copy link
Copy Markdown
Contributor

Nice! Should we demo it in an XDSLayout? I was wondering if we wanted to include the divider or leave that to the container.

@cixzhang

Copy link
Copy Markdown
Contributor

Other thought I had was should it compose the layout header internally or not and what affect that has on how LLM understands composition.

@cixzhang cixzhang mentioned this pull request Feb 17, 2026
@cixzhang
cixzhang merged commit 8618712 into main Feb 17, 2026
5 checks passed
@cixzhang
cixzhang deleted the XDSTopNav branch February 20, 2026 14:41
cixzhang pushed a commit that referenced this pull request Apr 26, 2026
Co-authored-by: Andrey Goder <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants