Skip to content

refactor(appbar): improve MD3 variants and action composition #4934

Done

Description

@ruben-rebelo

Refactor AppBar to improve Material Design 3 compliance, remove problematic children patterns, improve performance characteristics, and modernize the public API.

Problems

  • Current API relies heavily on children composition in ways that are difficult to optimize
  • Internal layout logic is tightly coupled to arbitrary child structures
  • MD3 behaviors and visuals are not fully aligned with current Material guidelines
  • Rendering performance can degrade in large lists or frequently updated screens
  • Type safety and discoverability of the API can be improved
  • The component has inconsistent behavior between platforms and edge cases

Focus Areas

  • Improve support for MD3 top app bar variants
  • Simplify action rendering
  • Improve scroll behavior integration
  • Improve accessibility and semantics

Proposed API Direction

<Appbar variant="small" title="Inbox" actions={[...]} />

Performance Opportunities

  • Reduce action re-renders
  • Improve animated scroll performance
  • Reduce style recalculation

Activity

  1. adrcotfas commented on May 15, 2026

    @adrcotfas
    Collaborator

    Important

    See #4949 for more details

  2. added this to the 6.0.0 milestone on Oct 30, 2026
  3. modified the milestones: 6.0.0, 6.0.0-beta.0 on Nov 12, 2026
  4. Doberjohn commented on Dec 4, 2026

    @Doberjohn
    Collaborator

    Done in #5218 (merged on 2026-11-19): Appbar keeps its compound API, its parts read the bar's mode, colors and theme from context instead of cloneElement, and the medium-flexible and large-flexible modes and the Expressive action props are in. #5325 (merged on 2026-11-30) made Appbar.BackAction use the settings.icon renderer. The bottom app bar stays, deprecated, until Toolbar (#5043) lands in 6.1. A subtitle for the flexible modes continues in #5272 on 6.1.0. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions