Add ImageBackground docs

This commit is contained in:
Nicolas Gallagher
2017-12-01 15:21:00 -08:00
parent e8eab9b3ec
commit b1e860ab40

View File

@@ -0,0 +1,41 @@
/* eslint-disable react/jsx-sort-props */
/**
* @flow
*/
import React from 'react';
import PropChildren from './examples/PropChildren';
import UIExplorer, {
AppText,
Code,
Description,
DocItem,
Section,
storiesOf
} from '../../ui-explorer';
const ImageBackgroundScreen = () => (
<UIExplorer title="ImageBackground" url="1-components/ImageBackground">
<Description>
A image component with support for child content.
</Description>
<Section title="Props">
<DocItem name="...Image props" />
<DocItem
name="children"
typeInfo="?any"
description="Content to display over the image."
example={{
render: () => <PropChildren />
}}
/>
<DocItem name="imageStyle" typeInfo="?style" description="Styles for the inner image." />
</Section>
</UIExplorer>
);
storiesOf('Components', module).add('ImageBackground', ImageBackgroundScreen);