The MediaContainer
component is used to make responsive images and videos
within your app. This component also allows for focing a specific aspect
ratio for these elements with both the height
and width
props are
provided.
The MediaOverlay
component is used to create an overlay over specific media
items within the MediaContainer
component. You will need to apply most of
your own styles as this is really just used for positioning.
Generated using TypeDoc
The overlay positions relative to the
MediaContainer
component. Most of the sizes are self-explanitory, but themiddle
position will be centered vertically whilecenter
will be centeredhorizontally
.