Go Main page
Go Main page

Web components

cover

components

Badge

v.1.0.0 | Saturn
Healthy

Visual indicator for pending tasks or messages.

Components

Play with the component with our playground.

[CODE]

Anatomy

Foo

NameDescription

1

Container
Required
The icon may change depending on the design or theme.

2

Label
width
The text that is included must be concise and short: Notifications, Messages... - _height size_ Fixed.

3

Dot
Indicates a number of unread notifications. Include all variant of _dot_.

4

Chevron icon
The icon may change depending on the design or theme.

States

Collapsed

When the component is collapsed, the color is dark and the chevron is down.

  • Regular

Foo

  • Alternative

Foo

Expanded

When the component is expanded, the color is red and the chevron is up.

  • Regular

Foo

  • Alternative

Foo

Options

Simple

Foo

With label

Foo

With dot

Foo

With dot and label

Foo

Sizes

Default

Foo

Large

Foo

Behaviours

  • Flexible notifications

If there are more than two digits, just add a “+99” reference.

Foo

  • Flexible label

Foo

  • Notifications

Indicates the number of unread or unopened notifications. The dot/number never disappears until the user read them.

Foo

Do's and dont's

Foo

Do’s

If the number exceeds two figures (eg: up to 99), a plus will be added to the number (eg: +99).

Foo

Don’t

Do not exceed two figures.

Foo

Do’s

Respect the color of the notifications.

Foo

Don’t

Do not use other color than the established.

Foo

Do’s

Label must be one word.

Foo

Don’t

The label must not exceed two lines. Just one word.

Foo

Do’s

Respect the established colors.

Foo

Don’t

Do not change de colors established.