x

Open in GithubOpen in StackBlitz
@twicpics-components
Documentation

mode property

The mode  property determines if the image fills or sits inside the area.

Here are the two accepted values:

  • cover: the image fills the area and is cropped accordingly.
  • contain: the image sits inside the area with no cropping.
mode="cover"
No mode set (coverby default)
mode="cover"
mode="contain"