-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1a7d76
commit 13058c8
Showing
51 changed files
with
236 additions
and
234 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: Image list React component | ||
components: ImageList, ImageListTile, ImageListTileBar, ListSubheader, IconButton | ||
--- | ||
|
||
# Image list | ||
|
||
<p class="description">Image lists display a collection of images in an organized grid.</p> | ||
|
||
[Image lists](https://material.io/design/components/image-lists.html) represent a collection of items in a repeated pattern. They help improve the visual comprehension of the content they hold. | ||
|
||
## Image only list | ||
|
||
A simple example of a scrollable image `ImageList`. | ||
|
||
{{"demo": "pages/demos/image-list/ImageOnlyList.js", "hideEditButton": true}} | ||
|
||
## Image list with titlebars | ||
|
||
This example demonstrates the use of the `ImageListTileBar` to add an overlay to each `ImageListTile`. | ||
The overlay can accommodate a `title`, `subtitle` and secondary action - in this example an `IconButton`. | ||
|
||
{{"demo": "pages/demos/image-list/TitlebarImageList.js", "hideEditButton": true}} | ||
|
||
## Single line Image list | ||
|
||
This example demonstrates a horizontal scrollable single-line grid list of images. | ||
Horizontally scrolling grid lists are discouraged because the scrolling interferes with typical reading patterns, affecting comprehension. | ||
One notable exception is a horizontally-scrolling, single-line grid list of images, such as a gallery. | ||
|
||
{{"demo": "pages/demos/image-list/SingleLineImageList.js", "hideEditButton": true}} | ||
|
||
## Advanced Image list | ||
|
||
This example demonstrates "featured" tiles, using the `rows` and `cols` props to adjust the size of the tile, and the `padding` prop to adjust the spacing. | ||
The tiles have a customized titlebar, positioned at the top and with a custom gradient `titleBackground`. | ||
The secondary action `IconButton` is positioned on the left. | ||
|
||
{{"demo": "pages/demos/image-list/AdvancedImageList.js", "hideEditButton": true}} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as React from 'react'; | ||
import { StandardProps } from '..'; | ||
|
||
export interface ImageListProps | ||
extends StandardProps<React.HTMLAttributes<HTMLUListElement>, ImageListClassKey> { | ||
cellHeight?: number | 'auto'; | ||
cols?: number; | ||
component?: React.ElementType<ImageListProps>; | ||
spacing?: number; | ||
} | ||
|
||
export type ImageListClassKey = 'root'; | ||
|
||
declare const ImageList: React.ComponentType<ImageListProps>; | ||
|
||
export default ImageList; |
Oops, something went wrong.