BackgroundImage
component allows setting background image as well as its aspect ratio via src
and ratio
props.
Property | Type | Required | Default | Description |
---|---|---|---|---|
src | string | 🗸 | image source that will be displayed as a background | |
ratio | number | 🗸 | 1 | aspect ratio of the image the background |
BackgroundImage
component accepts also all of the responsive, theme-based style props.