Skip to content

BaseTrigger

Description

BaseTrigger is a foundational component for creating triggers with button-like behavior, resembling buttons, links, or filters.

Sizes, margins and paddings

BaseTrigger sizes, margins and paddings
Size (height in px)Appearance exampleMargins
M (28px) The button has padding: 0 var(--intergalactic-spacing-2x), leading addon has margin-right: var(--intergalactic-spacing-2x), trailing addon has margin-left: var(--intergalactic-spacing-2x).
L (40px) The button has padding: 0 var(--intergalactic-spacing-3x), leading addon has margin-right: var(--intergalactic-spacing-2x), trailing addon has margin-left: var(--intergalactic-spacing-2x).

Interaction

BaseTrigger states
StateAppearance exampleStyles
NormalThe background uses --bg-primary-neutral token.
HoverThe background changes to --bg-primary-neutral-hover.
ActiveThe background reverts to --bg-primary-neutral, and border changes color to --border-info-active.
InvalidThe border changes color to --border-critical-active.
ValidThe border changes color to --border-success-active.
DisabledThe component changes opacity to --disabled-opacity.

BaseTrigger types

BaseTrigger has the following types for using in the different scenarios:

  • ButtonTrigger
  • FilterTrigger
  • LinkTrigger

ButtonTrigger

ButtonTrigger has the same sizes as BaseTrigger has.

ButtonTrigger sizes
Size (height in px)Appearance example
M (28px)
L (40px)

ButtonTrigger states

ButtonTrigger states
StateAppearance example
Normal
Hover
Active
Invalid
Disabled

FilterTrigger

This type has separate detailed FilterTrigger guide since it operates as an active state of a filter.

LinkTrigger

LinkTrigger has the styles of Link.

LinkTrigger sizes
Size (height in px)Appearance example
M (28px)
L (40px)

LinkTrigger states

LinkTrigger states
StateAppearance example
Normal
Hover
Active
Disabled

Released under the MIT License.

Released under the MIT License.