diff --git a/docs/src/app/components/pages/components/GridList/ExampleOneLined.js b/docs/src/app/components/pages/components/GridList/ExampleOneLined.js new file mode 100644 index 00000000000000..70278a71e7e7c4 --- /dev/null +++ b/docs/src/app/components/pages/components/GridList/ExampleOneLined.js @@ -0,0 +1,81 @@ +import React from 'react'; +import {GridList, GridTile} from 'material-ui/GridList'; +import IconButton from 'material-ui/IconButton'; +import StarBorder from 'material-ui/svg-icons/toggle/star-border'; + +const styles = { + gridList: { + display: 'flex', + flexWrap: 'nowrap', + margin: 'auto', + width: 500, + overflowX: 'auto', + }, +}; + +const tilesData = [ + { + img: 'images/grid-list/00-52-29-429_640.jpg', + title: 'Breakfast', + author: 'jill111', + }, + { + img: 'images/grid-list/burger-827309_640.jpg', + title: 'Tasty burger', + author: 'pashminu', + }, + { + img: 'images/grid-list/camera-813814_640.jpg', + title: 'Camera', + author: 'Danson67', + }, + { + img: 'images/grid-list/morning-819362_640.jpg', + title: 'Morning', + author: 'fancycrave1', + }, + { + img: 'images/grid-list/hats-829509_640.jpg', + title: 'Hats', + author: 'Hans', + }, + { + img: 'images/grid-list/honey-823614_640.jpg', + title: 'Honey', + author: 'fancycravel', + }, + { + img: 'images/grid-list/vegetables-790022_640.jpg', + title: 'Vegetables', + author: 'jill111', + }, + { + img: 'images/grid-list/water-plant-821293_640.jpg', + title: 'Water plant', + author: 'BkrmadtyaKarki', + }, +]; + +/** + * A example of arrange tiles for horizontal scrollable one line, using the `cols` props to adjust first view of tiles. + */ +const GridListExampleOneLined = () => ( +