Package-level declarations
Material web button components (elevated, filled, filled tonal, outlined, text).
Types
Buttons help people initiate actions, from sending an email, to sharing a document, to liking a post.
Elevated buttons are essentially filled tonal buttons with a shadow. To prevent shadow creep, only use them when absolutely necessary, such as when the button requires visual separation from a patterned background.
Filled buttons have the most visual impact after the FAB, and should be used for important, final actions that complete a flow, like Save, Join now, or Confirm.
A filled tonal button is an alternative middle ground between filled and outlined buttons. They're useful in contexts where a lower-priority button requires slightly more emphasis than an outline would give, such as "Next" in an onboarding flow.
Outlined buttons are medium-emphasis buttons. They contain actions that are important, but aren’t the primary action in an app.
Text buttons are used for the lowest priority actions, especially when presenting multiple options.