Skip to main content

StorefrontLink

Overview

StorefrontLink represents a discriminated union of different link types in the storefront. Each type specifies the target resource it navigates to, such as products, categories, pages, or custom URLs.

Navigates to a custom URL.

  • Attributes:
    • to: literal = 'url'
    • url: string
    • title: string

Navigates to a specific product page.


Navigates to a specific category page.


Navigates to the homepage.

  • Attributes:
    • to: literal = 'home'

Navigates to a predefined page.

  • Attributes:

Navigates to the shopping cart.

  • Attributes:
    • to: literal = 'cart'

Navigates to the order confirmation page for a specific order.

  • Attributes:
    • to: literal = 'orderConfirmation'
    • id: string

Navigates to a custom content page.

  • Attributes:
    • to: literal = 'contentPage'
    • handle: string

Navigates to the search results page.

  • Attributes:
    • to: literal = 'searchResults'
    • params: Record<string, any> (optional)