HamburgerHamburger Icon

Media Blocks

Media Blocks are sections of content that usually includes one or more of: images, headlines, text, and call-to-action buttons. They are used to provide additional information about specific products or the Buffy brand.

Media Block Properties

Name

Description

Type

Required

Default

type

Type of block ("hero" | "product-block" | "press-small" | "trial" | "ksp" | "quote-hero" | "story-block" | "review" | "free-block" | "info-block" | "video" | "editorial" | "lifestyle" | "pencilbar" | "large-editorial" | "image" | "email-hero" | "text" | "guide-item" | "related-block" | "card" | "sticker" | "chart")

string

false

"hero"

image

Main image object.

object

false

null

image sub properties

Name

Description

Type

Required

Default

gatsbyImageData

Image object.

object

true

title

Image title.

string

false

mobileImage

Main mobile image object.

object

false

null

mobileImage sub properties

Name

Description

Type

Required

Default

gatsbyImageData

Image object.

object

true

title

Image title.

string

false

supportingImage

Supporting image object.

object

false

null

supportingImage sub properties

Name

Description

Type

Required

Default

gatsbyImageData

Image object.

object

true

title

Image title.

string

false

mobileSupportingImage

Supporting mobile image object.

object

false

null

mobileSupportingImage sub properties

Name

Description

Type

Required

Default

gatsbyImageData

Image object.

object

true

title

Image title.

string

false

shortText

Headline text.

string

false

""

longText

Description or longer paragraph text.

string

false

""

extraText

Additional text to display.

string

false

""

props

Additional media block information.

object

false

{}

props sub properties

Name

Description

Type

Required

Default

cta

Call to action info.

object

true

cta sub properties

Name

Description

Type

Required

Default

route

URL route link.

string

false

color

Text color ("dark" | "light")

string

false

useGutters

Uses main screen instead of full screen width if true.

boolean

false

backgroundColor

Background color of media block.

string

false

imagePosition

Image position ("left" | "right")

string

false

displayTitle

Optional title to use for display purposes.

string

false

svg

URL for SVG source.

string

false

className

List of classes for this element.

string | array

false

""

id

Unique identifier for this element.

string

false

""

grid

Utilizes Lattice grid for media block if true.

boolean

false

true

useTitle

Display title attribute with title property if true.

boolean

false

false

title

Title to use for accessibility or display if shortText is not available.

string

false

null

lazyLoad

Lazy load media block image if true.

boolean

false

false