UNPKG

@roo-ui/components

Version:

34 lines (23 loc) 852 B
# Background image <!-- STORY --> ## Installation ```shell $ yarn add @roo-ui/components ``` ## Example ```js import { BackgroundImage } from '@roo-ui/components'; export default ( <BackgroundImage src="/example.jpg"> Hello world </BackgroundImage> ); ``` ## Properties | Name | Description | Type | Default | Required? | |:------|:------------|:---------|:--------|:----------| | `src` | image url | `string` | - | ✔︎ | ## Customization This component can be customized with [styled-system](https://github.com/jxnblk/styled-system) by passing props for [height](https://github.com/jxnblk/styled-system#layout), [width](https://github.com/jxnblk/styled-system#width-responsive), [space](https://github.com/jxnblk/styled-system#space-responsive), or [background](https://github.com/jxnblk/styled-system#misc).