Shophub DocsContact ↗Contact ↗ (opens in a new tab)
GitHubGitHub (opens in a new tab)
  • Introduction
    • Introduction
      • AnnouncementBanner
      • ButtonBlock
      • CustomBlock
      • FunnelBlock
      • GridWrapper
      • ImageBlock
      • ProductPreviewBlock
      • SmallFunnelWrapper
      • StatementRowBanner
      • TextBlock
      • UpsellBlock
      • VideoBlock
        • Alignment
        • Crossorigin
        • Fetch-Priority
        • FontTypeClassification
        • ItemTypename
        • OrderOption
        • PageType
        • Size
        • SortOption
        • TwAspectRatio
        • TwFontSize
        • TwFontWeight
        • Button Type
        • Referrer Policy
        • Timezones
      • Button
      • Display Link
      • Image
      • Background Image
      • Product
      • Text
        • NavTextContainer
      • Header
      • Footer
    • Relationships
    • Webpage Builder
    • Third party scripts
    • Cart
    • Product inventory tracking
    • Tax collections
    • Getting started
    • Constants
    • Shopify database sync
    • Database banner seeding
    • Connecting with Shopify
    • Bundled products
    • Shopify webhooks
    • Git hooks
    • Add a new banner
    • Make a banner nestable

On This Page

  • Example
Question? Give us feedback → (opens in a new tab)Edit this page
CMS
Objects
Enums
Button Type

ButtonType

Enum to determine the type of a ButtonBlock. This is the main factor that decides which design is applied to the ButtonBlock.

enum ButtonType {
  Primary = 'primary',
  Secondary = 'secondary',
  Tertiary = 'tertiary',
}

Example

For examples on how different button types can look like, take a look at the ButtonBlock page.

TwFontWeightReferrer Policy

© 2024 | Shophub | Berlin