Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

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

Ouverte
#47 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
react, tailwindcss, typescript

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
TypeScript
Étoiles
39
Forks
16
Merge moyen
2 j 12 h
PR mergées (30 j)
10

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de babelize/babelize-elements

Toutes les issues de babelize/babelize-elements

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.