v0.6.0
@tinybigui/react 0.6.0
Minor Changes
-
refactor(fab): M3 Expressive refactor — slot architecture, new size scale, solid colors
Breaking changes (pre-1.0 minor bump):
- Default
sizechanged from"medium"to"fab". Updatesize="medium"if you relied on the 56dp size — it now renders the 80dp M3 Expressive Medium FAB. size="medium"now renders a 80dp container (M3 Expressive Medium FAB), not 56dp.- Default
colorchanged from"primary"to"primary-container". The oldcolor="primary"is now a solid color style (bg-primary / text-on-primary). color="secondary"andcolor="tertiary"are now solid styles (bg-secondary / bg-tertiary).
New features:
size="fab"(56dp) — new canonical default size.size="medium"(80dp) — M3 Expressive Medium FAB with 20dp corners and 28dp icon.color="primary-container"/"secondary-container"/"tertiary-container"— container color styles (previous default behaviour).color="primary"/"secondary"/"tertiary"— new solid color styles (M3 Expressive).- Dedicated focus-ring slot (
inset-[-3px], keyboard-only, never clipped). - Dedicated state-layer slot with correct opacities: hover 8% / focus 10% / pressed 10%.
- State-layer color matches icon/on-color per MD3 spec.
- Elevation 3 base → 4 hover → 3 focus/pressed per MD3 spec.
useHover+useFocusRing+isPressedvia React Aria — fullgroup-data-[x]/fabattribute system.- MD3 motion tokens replace hardcoded
duration-200.
Deprecated (functional, with dev warning):
size="small"— usesize="fab"instead.color="surface"— usecolor="primary-container"instead.
- Default