PhoenixKit 2.13.5: Tab strips for modules, and daisyUI 5 tab styling
PhoenixKit 2.13.5 extends the <.nav_tabs> tab strip so modules can use it in place of their own tab markup.
Tabs can now link with :navigate or :patch, the latter keeping the current page when tabs switch through query parameters; :path stays as before. A variant={:plain} drops the frame for a strip inside an already framed box, and :badge_class keeps a badge’s own colour. A tab whose badge is nil shows no badge.
The boxed style used the class tabs-boxed, which daisyUI 5 renamed to tabs-box, so the frame did not show. It shows again. The filter row on the live sessions page now uses this component.
Full release notes: PhoenixKit 2.13.5
2.13.5 · 21 August 2026
nav_tabs becomes the strip the rest of the ecosystem can actually adopt:
patch links, an unframed variant, nil-tolerant badges, and the daisyUI 5
tabs-box class (#744). Companion PRs in seven modules migrate onto it.
Added
nav_tabslink keys now mirrorPhoenix.Component.link/1.:navigatefor a full LiveView navigation,:patchto stay in the current LiveView (query-param tabs need this — a navigate remounts and drops socket state).:pathis a permanent alias for:navigate, so existing callers do not change. Two link keys on one tab raise; anilvalue counts as absent (#744).variant={:plain}drops the daisyUI frame (tabs-box) so a strip nested in an already-framed container is not double-boxed.classcan only add, which is why callers had been hand-rolling instead (#744).:badge_classlets a tab keep its own badge tone (a pending-requests count staysbadge-warningwhether or not it is the active tab) (#744).tablist_class/2andtab_class/2are public so tab-styled markup that is not a tab strip can share one daisyUI definition. The next class rename should be a change here, not another sweep (#744).
Changed
tabs-boxed→tabs-box. daisyUI 5 renamed the class; the old name styled nothing (#744).- Optional tab keys treat
nilas absent, sobadge: if(n > 0, do: n)renders no badge rather than an empty pill. Zero still renders (#744). live_sessions’ filter row uses<.nav_tabs>. Its handler now matches on%{"tab" => _}instead of%{"type" => _}— the URL query key staystype(#744).
Fixed
import PhoenixKitWeb.Components.Core.NavTabsis now explicit (only:) so a later helper on that module does not silently join every LiveView’s namespace.tab_class/tablist_classare the intended additions; the same file already documents this failure mode onEmailStatusBadge(post-merge follow-up for #744).
PhoenixKit 2.13.5. Install or update: {:phoenix_kit, "~> 2.13"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.