Media
Props
Media/Flag props
Property | Required | Type | Default | Description |
---|---|---|---|---|
className | no | String | The classname of the element | |
image | yes | Node | The image displayed | |
innerClassName | no | String | The classname of the inner element | |
mediaSpacing | no | oneOf('small', 'medium', 'large', 'xlarge') | Amount of whitespace between media and body | |
placement | no | oneOf('left', 'right') | 'left' | Horizontal placement of the media |
stackSize | no | oneOf('xsmall', 'small', 'medium', 'large') | At what breakpoint should the media object stack | |
vAlign | no | oneOf('middle', 'bottom') | Vertical alignment of the body (used for large images with small content next to it, usually centered) |
Imports
Import React components (including CSS):
import {Media, Flag} from 'pivotal-ui/react/media';
Import CSS only:
import 'pivotal-ui/css/media';