
Product
A Fresh Look for the Socket Dashboard
Weâve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
@kaizen/draft-button
Advanced tools
title: Button navTitle: Button summaryParagraph: Buttons perform actions. tags: ["Link button", "Primary action", "Secondary action", "Default action", "Destructive action", "Directional link", "Pagination link"] githubLabels: ["component:button"] needToKnow:
import WhenToUseAndWhenNotToUse from "docs-components/WhenToUseAndWhenNotToUse" import WhenToUse from "docs-components/WhenToUse" import WhenNotToUse from "docs-components/WhenNotToUse"
import DoAndDontContainer from "docs-components/DoAndDontContainer" import Do from "docs-components/Do" import Dont from "docs-components/Dont"
role=âbuttonâ
)All buttons across the platform should be clear, actionable and predictable. When a user clicks on a button, they should know what to expect. Therefore, itâs important to pay close attention to the labelling. Here are the most important rules to keep in mind:
Make sure that all your buttons begin with a strong verb (something that elicits an action from the user). Verbs indicate to a user what theyâre about to see or do next. There are two ways to use verbs in a button:
Verb + noun
A verb and noun combination gives users more context and can help guide them when the action theyâre about to perform isnât commonplace.
Verb only
A verb only label should be used in cases where the action the user is about to perform is common and the meaning is clear. In these cases, the context in which the button appears is enough to know what the verb is referring to without needing a noun. This is a good option for when space is tight.
Here are some commonly used verb-only buttons in the platform:
All buttons should be in sentence case i.e. the first letter of the first word is capitalized and everything else is in lower case unless itâs a proper noun or feature name. Always err on the side of minimal punctuation, so leave out full stops and commas where possible.
The optimum number of words for a button is between 2 and 3 words. Buttons should be in active voice, succinct and scannable. So, avoid words like âaâ and âanâ and use an ampersand if youâre short for space.
Make sure that your verbs describe the action accurately. Use words like âCancelâ and âSave.â Avoid phrases like, âClick here.â Not only is that redundant, it also doesnât describe what the user will see next nor does it comply with our accessibility rules.
Avoid using âyesâ or ânoâ as buttons. This requires the user to read the body text to know what theyâre agreeing or disagreeing to.
Any buttons that include a personal pronoun should be written in the second person.
Keep in mind that you shouldnât use personal pronouns unless youâre asking the user to filter something. For example, âView your reportsâ vs âView all reports.â
Make sure that the button uses the same verb and noun as whatâs used in the body text above it. For example, if you say âUpload your most up-to-date employee data into Culture Amp.â in the body, the button should say âUpload data,â not âImport data.â There are also cases in which the action the user wants to perform is a common label button like âNextâ or âCancel.â Make sure that youâve rewritten your body copy to make the action very clear. For example, if a user is trying to cancel sending a survey, but thereâs also a cancel button to exit the modal theyâre viewing, reword the copy of the body to say âdonât send survey.â
Here are some examples of other existing design systems:
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Weâve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
Industry Insights
Terry OâDaniel, Head of Security at Amplitude, shares insights on building high-impact security teams, aligning with engineering, and why AI gives defenders a fighting chance.
Security News
MCP spec updated with structured tool output, stronger OAuth 2.1 security, resource indicators, and protocol cleanups for safer, more reliable AI workflows.