YouTubeDesign referenceComponent inventory

All examples / Component family

Shell and search

Search field, desktop guide and signed-out entry actions.

Live component context

desktop-guide

Open the linked recipe for keyboard interaction and its full responsive composition. The embedded frames show the same live component.

guide triggerprimary route entriesexplore groupingmore-from-YouTube groupingsign-in promptcollapseshow-more

Isolated specimen

Product context

Open search recipe · API and source trace

Reconstructed local contract. Its source appearance and local behavior have different authority. Interactive account boundaries never perform remote writes.

root[data-denominator="desktop-guide"]
selectors.guide
.guide a
.guide h2
authorityreconstructed local contract
inputsdrawer trigger
defaultsdesktop: expanded
narrow: off-canvas
eventsclick drawer
outputsguide open or collapsed class and matching aria-expanded
focusThe trigger retains normal button focus.
errors
motionNarrow guide transform is 150ms except under reduced motion.
invariantsguide is 240px wide when open
navigation links remain native anchors
stateOwnershipdata-action and ARIA state are owned by site/examples/product.js. CSS ownership is site/examples/product.css followed by site/examples/control-overrides.css. A state without an implemented matching denominator is explicitly unverified.
responsiveOwnership@media (max-width:900px) and @media (max-width:560px) in site/examples/product.css
semanticsUse native button, input, form, link, dialog, tablist, and tab semantics when the part is interactive. Preserve the captured aria-* state on the control that owns the action.

Variants and content

expanded
collapsed
signed-out

Keep parent-owned gaps outside the component. Preserve per-side padding and text line boxes; use the rule’s responsive condition before copying a single measured width. Source selectors ytd-guide-renderer, ytd-guide-entry-renderer.

Exact rules are available in the linked shared CSS and API contract. The geometry ledger preserves per-part probes and source boundaries.

Retrieve base CSS, cascade corrections, and behavior. Use these together. Avoid replacing the recorded glyph with text or inventing a success state for a private operation.