Repository navigation
feat(appbar): modernize App bar to MD3 Expressive specification - #5173
Priyanshu0007 wants to merge 1 commit into
Conversation
- add medium-flexible (112/136dp) and large-flexible (120/152dp) variants
- deprecate medium and large baseline variants
- restore subtitle support with bodyMedium typography and onSurfaceVariant color
- support titleAlignment ('start' | 'center') across small and flexible modes
- add reactive scroll elevation and collapsing support via useAppbarScrollBehavior
- add support for filled ('contained') and tonal ('contained-tonal') trailing action buttons
- add Appbar.Image component for app bar logos and avatars
- export TopAppBar alias and corresponding types for MD3 modernization
- update unit tests, snapshots, and example showcase
Closes callstack#4973
60a19c7 to
1f7e23e
Compare
|
Appbar's direction for 6.0 was decided in #5150 (D7): it keeps its compound API, built on context, with the Material 3 Expressive variants as props. That landed today in #5218, which covers the flexible modes, filled and tonal actions ( What #5218 doesn't cover is a subtitle for the flexible modes, a scroll behavior hook and |
|
Thanks for the review and the context on #5150 and #5218! Most of this PR is now on |
Motivation
Modernizes Appbar suite to MD3 Expressive specifications (#4973).
medium-flexible(112/136dp),large-flexible(120/152dp).Appbar.Content(bodyMedium,onSurfaceVariant).useAppbarScrollBehaviorfor elevation & 64dp collapse.Appbar.Image.TopAppBaralias and types.Related issue
Closes #4973
Test plan
yarn test AppbarScreenshots