Skip to content

v1.3.0

Latest

Choose a tag to compare

@sapatmohit sapatmohit released this 17 Oct 05:17
0eba923

Behaviour changes

No props were removed or renamed. These changes affect markup and keyboard handling in existing setups:

  • Listbox semantics: in LanguageSwitcher, PhoneInput and NavBar, role="listbox" now sits on the options container instead of the popup wrapper, and the active option is exposed via aria-activedescendant (or roving focus in NavBar). Update tests or selectors that queried the old structure. (#44)
  • Keyboard: Arrow Up/Down, Home/End, Enter and Escape now navigate and select in these popups, and pressing an arrow key on a closed trigger opens it. (#44)
  • shadcn registry: language-switcher, phone-input and navbar now depend on a new use-listbox-navigation registry item. The shadcn CLI installs it automatically. (#44)

New

  • LanguageSwitcherPill: segmented pill switcher with an animated active indicator, radio-group semantics, arrow / Home / End keys and RTL support. (#19)
  • maxHeight prop on LanguageSwitcher, PhoneInput and NavBar to cap the popup height. Defaults to 15rem, the same as before. (#44)
  • useListboxNavigation: the shared keyboard hook behind the popups, available from the registry. (#44)

Website

  • Landing navbar shows a live GitHub counter that cycles stars, forks and PRs; the Community section shows all three. (#48)

What's Changed

  • feat: add language switcher pill by @ayamanshaikh in #19
  • feat(a11y): keyboard navigation for listbox popups (LanguageSwitcher, PhoneInput, NavBar) by @ujwalbajaj in #44
  • feat(website): add GitHub stars/forks/PRs counter in navbar and community by @TanmayNileshShinde in #48

New Contributors

Full Changelog: v1.2.0...v1.3.0