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
TwAspectRatio

TwAspectRatio

Enum to determine the aspect ratio of an object. Currently only used for embedding YouTube videos via the VideoBlock banner.

enum TwAspectRatio {
  /** 1:1 aspect ratio. */
  Square = 'aspect-square',
  /** 16:9 aspect ratio. */
  Video = 'aspect-video',
}

Example


aspect-square

aspect-video

SortOptionTwFontSize

© 2024 | Shophub | Berlin