Buttons

Anatomy

Navigation buttons anatomy
  1. Label sets the label of the button.
  2. Caret down/up icon shows that there are options. Show the icon only when the parent section has one or more children.
  3. Underline represents the active section on the page. It is present in the active and hover state.

Usage

When to Use

Use only on navigation components: the top hat, site nav, page nav, and nested nav.

When Not to Use

Don’t use as a standard CTA to execute regular actions.

Variants

There is only one type of navigation button, with no variations.

Navigation Button only variant
Variation
Purpose
Icon
Sizes
Colors

Navigation

Use for menu options in the top hat, site nav, page nav, and nested nav.

With icon (parent and child options), no icon (only parent option)

XL, LG, MD, SM

Neutral, white

With Icon

Add a caret-down icon when the parent option has children.

Navigation Button With Icon
Use the caret-down icon when collapsed and caret-up when options are shown.

No Icon

No icon should appear when the parent option has no children.

Navigation Button Without Icon
No icons are used.

Container

Spacing

A button container can add standard spacing between buttons. Ensure that proper space is given between each button when placed next to each other. The standard distance between navigation buttons is 24px.

Navigation Button Container Spacing

Alignment

The alignment of the navigation buttons in their container should follow a right-justified pattern. The navigation component and its alignment change for the MD and SM view-ports.

Navigation Button Alignment graphic reference
Navigation Button graphic reference of how to align the buttons well on a container.

Do place the navigation buttons at the right of the navigation bar.

Navigation Button graphic reference of how to align the buttons wrong on a container.

Don’t place the navigation buttons following the logo, left-aligned.

Sizing

Sizing affects text size, icon size, and internal padding. The default size is large, and you can use props to make the button smaller or larger. In case of the primary button in red color, we recommend using it only in the XL and LG sizes for accessibility.

Navigation Button in all the possible sizes

Motion

For the specific status of hover, the arrow changes its color to red, and the red underline appears.

Navigation Button arrow motion

Themes

Navigation button on dark theme
Dark
Navigation button on mid theme
Mid
Navigation buttons on light theme
Light