Square Image Container

A Square Image Container creates a square element that centers a Fluid Image inside it, and stretches the image to fill the width or height of the square as appropriate for the image's aspect ratio.

Use Square Image Container...

  • When you want an image to appear centered within a square container.
  • With a Fluid Image only.

Don't use Square Image Container...

The preview has been updated.

Props

See core props for additional props that can be applied to each of these components. Each component also accepts the React-equivalent native HTML attributes of the element it renders, unless a listed prop replaces one or a note says otherwise.
SquareImageContainer
Renders <div>. No props beyond core props and native HTML attributes.

Related