Go Main page
Go Main page

Web components

cover

components

Navigation Card

v.1.0.0 | Saturn

Usage

The name of the tokens object to style the NavigationCard component is NAVIGATION_CARD_STYLES.

You can not change the name of the object of tokens.

There is one prop that allows to modify different aspects of the component:

  • Variant: modify the styles of the NavigationCard.

Variants

Variants can modify the styles for the NavigationCard. The tokens used are:

Example

NavigationCard theme object example:

12345678910
const NAVIGATION_CARD_STYLES = {
  [VARIANT]: {
    container?: CommonStyleType,
    containerExpandedContent: boolean,
    contentContainer?: CommonStyleType,
    rightContentContainer?: CommonStyleType,
    decorativeElementContainer?: CommonStyleType,
    icon?: IconTypes & {
      margin_right?: string,
    },