Skip to content

Common Buttons

Overview

The Common Buttons include a variety of customizable button components to suit different use cases and design requirements. These components are styled to align with Material Design principles and support optional icons, custom text styles, and other features.

common buttons

Button Components

The library provides the following button components:

  • TextButton: A button used for less prominent actions.
  • FilledButton: A button with a solid background used for primary actions.
  • OutlinedButton: A button with a border outline used for secondary actions.
  • ElevatedButton: A button with elevation used for actions requiring emphasis.
  • TonalButton: A button with a soft tonal background.

Properties

namedescriptiontypedefault
titleRequired. The text displayed on the button.string-
StartIconA component displayed to the left of the title.React.FC-
EndIconA component displayed to the right of the title.React.FC-
iconPropsProps passed to the StartIcon and EndIcon.T-
titleStyleCustomizes the text style of the button title.TextStyle-