v0.8.0
@tinybigui/react 0.8.0
Badge — MD3 expressive variants/states architecture (breaking, pre-1.0)
- Removes non-spec
colorprop andBadgeColortype fromBadge,BadgeContent, andDrawerItemBadgeConfig - MD3 badge uses error color only (
bg-error/text-on-error), now hardcoded in CVA base - Migrates to variants-vs-states architecture (same pattern as Button, Switch, IconButton)
- Dot vs count is a content flag (
data-dot); visibility is a runtime flag (data-invisible) - Show/hide animation uses MD3 Expressive spatial motion tokens
Migration: Remove any color prop usage from <Badge> and <DrawerItem badge={{ color: … }}>.
Badge — icon-corner anchoring fix
- Indicator now straddles the wrapped element's top-right corner (
top-0 right-0 -translate-y-1/2 translate-x-1/2) per MD3 spec - Host-size-agnostic: works on bare icons, IconButtons, nav chips, and other wrapped elements
DrawerItem trailing badge
- Config-based badge (
badge={{ count: N }}) renders inline static pill via newbadgeStaticVariants(no absolute positioning on zero-size anchor)
New exports
badgeStaticVariantsandBadgeStaticVariantsfor inline badge pills in custom layouts
Full changelog: packages/react/CHANGELOG.md