Components
Clickable elements used to perform actions.
A button can have one of five themes: Primary, Secondary, Tertiary, Caution and Solid.
There are three global states: default, active and disabled. The primary button also has a loading state. All active states double as focus states.
Buttons contain one required element and one optional element.
Only one button size is available on native. It adheres to our global tap target of 48dp.
By default buttons change width depending on the content inside of them. Occasionally a design requires a button to span the width of the container. Full width buttons occupy 100% of the width available to them in the container.
ThumbprintButton
Configurable items (via XML or values):
app:buttonType
in XML or ThumbprintButton.buttonType
, with enum values primary
, secondary
, tertiary
, caution
, or solid
; defaults to primary
android:text
in XML or ThumbprintButton.text
, Stringapp:isEnabled
in XML or ThumbprintButton.isEnabled
, Boolean; defaults to trueapp:isLoading
in XML or ThumbprintButton.isLoading
, Boolean; defaults to falseapp:isBleed
in XML or ThumbprintButton.isBleed
, Boolean; defaults to falseapp:inlineDrawableLeft
or app:inlineDrawableRight
in XML, Drawable