Buttons indicate to a user that an important action is available (e.g., start a flow, proceed to next steps, send your info, save for later). Button hierarchy helps communicate the importance of one action vs. another.
- Button copy: encourages the user to take action.
Be clear and use copy to motivate action
- Be succinct; try not to use more than 4 words.
- Don’t use punctuation.
- Button copy is written in all caps.
Use icons thoughtfully
- An icon is allowed to use on a button to signify what the button does.
- The lock icon indicates security to the user (Learn more ). Check with legal when you are using it.
- Do not use the lock icon if the user will leave NerdWallet after clicking on the button (legally NerdWallet can’t promise security).
Use loading states sparingly
Only show a loading state if it isn’t possible for a user to do something else while the action processes.
- Primary buttons should be used very sparingly (ideally one per page) to draw user’s attention to highest priority action.
- Several secondary and tertiary buttons can be used per page and help differentiate between next steps.
Users may quickly tab through a page to discover interactive elements, or use the VoiceOver rotor to get a list of all buttons on the page. This means it's important that a button's label is descriptive of what the button actually does, since it's not guaranteed that the user will encounter your button in the context of adjacent labels or descriptions. Instead of button labels like "Read more" or "Apply now", you should prefer more descriptive ones like "Read more about robo-advisors" or "Apply now on Chase's site".
You often want a button that looks like a link, or vice-versa a link that looks like a button. The
<Link> components can be used interchangeably, and which one you use should be determined by what you want it to look like. Both components can render either
<button> tags depending on the props used (
onClick), ensuring you get both the right styling and the right DOM elements for semantics and accessibility.
- Use this component (
<Button>) when you want something that looks like a button.
<Link>when you want something that looks like a link.
In addition to props defined by this component, any props
<a> take are also accepted.