Buttons are interactive components that allow users to perform actions, submit information, or navigate through digital experiences. They play a fundamental role in guiding users toward completing tasks and should clearly communicate the action they trigger.
A button in HTML is a clickable UI component, designed to trigger a specific action or event. Essential in web interfaces, they guide user interactions, from form submissions to navigation.
A button is perhaps the most important and a key component in a design system. It can form the basis of every other component's design. The button defines the ability to communicate an action and if very useful in the ability to accept submissions and guide the user through the website.
The following is a visual representation of a button in use along with it's code usage. There are 4 button types and these have to be used in accordance to the state of how you want to collect data from a user, or provide the user with certain choices.
The solid button (also known as the primary or base button) applies monochromatic colours and makes it stand out from other elements.
The bordered or outline button has less emphasis than the primary button. Use this when you need the user to take an optional action or provide less visibility to the action in comparison to another action.
This is an alternative to the outline button. The soft button has equal priority to the outline and is usually used when the action is secondary or optional.
This button has the least priority and can be used inside card elements as a navigation action.
Use for the main call-to-action on a page
Use for secondary actions or alongside a primary button
Use for subtle actions that require less emphasis
Use of Cookies by this site is just to guarantee Ease of Access and better user experience while browsing. Continuation of your browsing acknowledges your approval for Terms and Conditions of this site and its use of Cookies. Privacy Policy
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
Your response has been successfully recorded. If you wish to modify or change your answer, you can go back by clicking the Undo button.