Skip to content

docs: home install-command dropdown + static downloads stat#705

Merged
rabisg merged 3 commits into
mainfrom
home-command-dropdown
Jul 1, 2026
Merged

docs: home install-command dropdown + static downloads stat#705
rabisg merged 3 commits into
mainfrom
home-command-dropdown

Conversation

@pd-builds

Copy link
Copy Markdown
Contributor

Summary

  • Turn the home hero's install command into a hover dropdown offering pnpx / bunx / yarn dlx / npx, each copyable on click. A single highlight pill slides between the rows, and the first row overlaps the trigger exactly, so it reads as the button expanding into the menu.
  • Replace the tweet wall's live npm monthly-downloads counter with a static "1 Million+ downloads across all packages" stat.

Notes

  • Built as an isolated CommandDropdownButton with its own styles, so no other buttons are affected.

Testing

  • Local dev preview: measured that the trigger, the first menu row, and the sliding highlight occupy the exact same rect; the longest row (yarn dlx …) fits inside the card; and the label and copy chip do not shift when the menu opens. Confirmed visually with screenshots of the opened menu.

🤖 Generated with Claude Code

pd-builds and others added 3 commits July 1, 2026 20:26
Hovering the install command opens a card offering pnpx, bunx, yarn dlx, and npx, each copyable. A single highlight pill slides between the rows, and the first row overlaps the trigger exactly so it reads as the button expanding into the menu.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replaces the live npm monthly-downloads fetch with a static "1 Million+ downloads across all packages" figure.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copying a row no longer closes the menu, so its copied checkmark is visible. The focus-based open/close is removed too, so a copy's transient focus change can't shut the menu; mouse-leave is the sole close.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rabisg rabisg merged commit a249083 into main Jul 1, 2026
2 checks passed
@rabisg rabisg deleted the home-command-dropdown branch July 1, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants