@freshworks/button
v0.19.1
Published
Button component in Nucleus
Downloads
6,465
Maintainers
Keywords
Readme
@freshworks/button
ember install @freshworks/button
Buttons in Freshdesk
Buttons means operation or series of operations. Buttons are interactive components that the users can click or touch to trigger corresponding business logic.
Scenario
There are several button variants used throughout the product. They are used in pages such as articles, forms, wizards and perform actions such as saving, cancelling or sending, or call users to those actions.
Guidelines
DO’s
- Label button with what action it triggers.
- Choose appropriate button for the context.
- Use primary button for the primary/important action of the page.
- Use secondary buttons as default buttons.
- Use link buttons as tertiary buttons for less prominent actions.
- Use consistent button placement and direction for a user journey.
- Use button against a contrast background and have essential white space around the button.
DONT’s
- Avoid using too many buttons in one page.
- Button copy shouldn’t be too wordy.
- Don’t use more than one primary button in a page.
- Don’t use buttons instead of tabs.
- Don’t trigger the action without alerting the user for destructive buttons.
- Don’t use destructive buttons for all delete/ cancellation scenarios. More applicable for actions which involves deleting the data permanently.
- Don’t enable primary button before all mandatory fields are filled.