v1.3.0
Minor Changes
-
414a85a:
classNamenow reliably overrides a component's own styles. Class names are combined withtailwind-merge, so a utility you pass that conflicts with a component default replaces it instead of sitting alongside it:<Badge className="rounded-full bg-slate-900 px-6">Beta</Badge>
Previously both classes reached the stylesheet with equal specificity, so which one applied came down to Tailwind's ordering of its generated output rather than to what you passed —
px-6happened to beat a defaultpx-3, whilebg-slate-900silently lost to a defaultbg-white. Overrides that already worked keep working; ones that silently did nothing now take effect, which may reveal aclassNamein your app that was never being applied.Sidebarno longer forcesh-svhon its<aside>. It stretches to the height of itsSidebarProviderinstead, so it stays viewport-tall in a normal app shell while also working inside a deliberately smaller container — a preview, a card, a split pane. Pair a fixed height withmin-h-0to opt out of the provider'smin-h-svhfloor:<SidebarProvider className="h-72 min-h-0">…</SidebarProvider>