{"id":23442245,"url":"https://github.com/teamwertarbyte/material-ui-image","last_synced_at":"2025-04-04T12:07:05.014Z","repository":{"id":12017256,"uuid":"70991285","full_name":"TeamWertarbyte/material-ui-image","owner":"TeamWertarbyte","description":"Material style image with loading animation","archived":false,"fork":false,"pushed_at":"2023-01-06T01:31:54.000Z","size":2945,"stargazers_count":213,"open_issues_count":29,"forks_count":38,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T11:07:30.080Z","etag":null,"topics":["image","loader","material-ui","react"],"latest_commit_sha":null,"homepage":"https://mui.wertarbyte.com/#material-ui-image","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TeamWertarbyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["leMaik","saschb2b"]}},"created_at":"2016-10-15T14:04:50.000Z","updated_at":"2024-09-21T06:17:45.000Z","dependencies_parsed_at":"2023-01-13T16:45:46.029Z","dependency_job_id":null,"html_url":"https://github.com/TeamWertarbyte/material-ui-image","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamWertarbyte%2Fmaterial-ui-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamWertarbyte%2Fmaterial-ui-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamWertarbyte%2Fmaterial-ui-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamWertarbyte%2Fmaterial-ui-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TeamWertarbyte","download_url":"https://codeload.github.com/TeamWertarbyte/material-ui-image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174416,"owners_count":20896078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image","loader","material-ui","react"],"created_at":"2024-12-23T17:29:02.694Z","updated_at":"2025-04-04T12:07:04.990Z","avatar_url":"https://github.com/TeamWertarbyte.png","language":"JavaScript","funding_links":["https://github.com/sponsors/leMaik","https://github.com/sponsors/saschb2b"],"categories":[],"sub_categories":[],"readme":"# Material UI Image\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Build Status](https://travis-ci.org/TeamWertarbyte/material-ui-image.svg?branch=master)](https://travis-ci.org/TeamWertarbyte/material-ui-image)\n\nImages are ugly until they're loaded. Materialize it with material image! It will fade in like the material image loading pattern suggests.\n\n![Example](demo.gif)\n\n## Installation\n\n```sh\nnpm install material-ui-image\n```\n\n**Note:** This is the version for Material-UI 1.0.0-rc.0 or later. If you are using Material-UI 1.0.0-beta, you should update to the latest version. If you are still using Material-UI 0.x, you can use our [legacy version][legacy].\n\n## Usage\n\nUse this component just like a regular img tag.\n\n```jsx\nimport Image from 'material-ui-image'\n\n\u003cImage\n  src=\"http://loremflickr.com/300/200\"\n/\u003e\n```\n\n### Material UI Image Properties\n\n|Name               |Type        |Default                                   |Description\n|-------------------|------------|------------------------------------------|--------------------------------\n|animationDuration  | `number`   | 3000                                     | Duration of the fading animation, in milliseconds.\n|aspectRatio        | `float`    | (1/1)                                    | Specifies the aspect ratio of the image.\n|cover              | `bool`     | false                                    | Override the image's object fit to `cover`\n|color              | `string`   | white                                    | Override the background color.\n|disableError       | `bool`     | false                                    | Disables the error icon if set to `true`.\n|disableSpinner     | `bool`     | false                                    | Disables the loading spinner if set to `true`.\n|disableTransition  | `bool`     | false                                    | Disables the transition if set to `true`.\n|errorIcon          | `node`     | \u003cBrokenImage /\u003e                          | Override the error icon.\n|iconContainerStyle | `object`   |                                          | Override the inline-styles of the container that contains the loading spinner and the error icon.\n|imageStyle         | `object`   | { width: 'inherit', height: 'inherit' }  | Override the inline-styles of the image.\n|loading            | `node`     | \u003cCircularProgress size={48} /\u003e           | Override the loading component.\n|onClick            | `func`     |                                          | Fired when the user clicks on the image happened.\n|src*               | `string`   |                                          | Specifies the URL of an image.\n|style              | `object`   |                                          | Override the inline-styles of the root element.\n\n\\* required property\n\nAll other props are passed through to the underlying `img` element after the image is loaded.\n\n## License\n\nThe files included in this repository are licensed under the MIT license.\n\n[legacy]: https://github.com/TeamWertarbyte/material-ui-image/tree/legacy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamwertarbyte%2Fmaterial-ui-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteamwertarbyte%2Fmaterial-ui-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamwertarbyte%2Fmaterial-ui-image/lists"}