Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Component: more NavBar variants (centered, floating, mega menu, sidebar, minimal, search)

未关闭
#47 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
react, tailwindcss, typescript

调研方向

Start by reading the existing NavBar component and its shared locale data, then review issues #44–#46 for the keyboard, RTL, and preview requirements. The issue asks for one separately claimed variant per PR; choose a variant and identify its registry, barrel export, docs, demo, and test entry points. Done when that variant meets the listed requirements and its acceptance checks pass.

由索引模型根据 Issue 内容生成。

描述

component enhancement help wanted

Summary

NavBar is the only navigation component. Add more navbar variants so users can pick a layout without restyling the base one. Each variant is a separate component and a separate PR; comment below to claim one.

Proposed variants

Component Description
NavBarCentered Logo centered, links split left/right, language selector and CTA at the end.
NavBarFloating Detached, rounded "pill" bar that floats over content with a blurred backdrop, and shrinks on scroll.
NavBarMega Links can open a mega-menu panel with grouped sub-links and descriptions.
NavBarSidebar Vertical side navigation for docs and dashboards, collapsible to icons, with the language selector in the footer.
NavBarMinimal Logo plus language selector only, using LanguageSwitcherPill as the inline locale control.
NavBarWithSearch Base bar plus a search field / command-palette trigger (⌘K).

Requirements (every variant)

  • Same conventions as NavBar:
    • value / defaultValue / onValueChange for the locale.
    • locales: Locale[] from ./types.
    • linkComponent for router links.
    • Ref forwarding and passthrough of extra props to the root element.
  • Locale labels and flags from the shared ./locale-data module. No local copies.
  • Language menus use useListboxNavigation (#44) for keyboard support.
  • RTL: dir derived from the active locale, logical utilities only (start/end, ms/me, text-start). See #45.
  • Responsive with a mobile menu at narrow widths; dark mode.
  • Registry entry with correct registryDependencies (npm run test:registry must pass), a barrel export, a docs page with Installation / Usage / Props / Examples, a live demo, and tests.
  • Docs preview tall enough for the variant's popups (see #46).

Acceptance per PR

  • One variant per PR, linked to this issue.
  • lint, format:check, typecheck, test, build:lib, test:pack pass.
  • Screenshots: LTR and RTL, desktop and ~390px, light and dark.
主要语言
TypeScript
星标
39
派生
16
平均合并
2 天 5 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

babelize/babelize-elements 的其他 Issue

查看 babelize/babelize-elements 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。