Learn about the design patterns HubSpot recommends for using buttons in app cards.
Button
components to enable users to perform actions in app cards, such as submitting a form, sending data to an external system, or deleting data.
Follow the design patterns below to keep your app card consistent with HubSpot’s designs. To learn more about implementation, check out the Button component reference documentation.
primary
button per surface (e.g., one per panel, one
per modal). The button should be reserved for the main action that a
user can perform.destructive
variant buttons with
primary
buttons. Limit button pairings to either primary
and
secondary
or destructive
and secondary
.primary
and
secondary
variant buttons, the primary
button should appear as the
leftmost button. The only time you should align a button to the right of
a container is for buttons that navigate through multi-step forms, as
this is where the user will intuitively click.