Skip to content

Commit d7fe9a1

Browse files
shorter description
1 parent 4165d1b commit d7fe9a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/pages/api/avatar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi
3131
| <span class="prop-name">imgProps</span> | <span class="prop-type">object</span> | | Attributes applied to the `img` element if the component is used to display an image. |
3232
| <span class="prop-name">sizes</span> | <span class="prop-type">string</span> | | The `sizes` attribute for the `img` element. |
3333
| <span class="prop-name">src</span> | <span class="prop-type">string</span> | | The `src` attribute for the `img` element. |
34-
| <span class="prop-name">srcSet</span> | <span class="prop-type">string</span> | | The `srcSet` attribute for the `img` element. |
34+
| <span class="prop-name">srcSet</span> | <span class="prop-type">string</span> | | The `srcSet` attribute for the `img` element. Use this attribute for responsive image display. |
3535
| <span class="prop-name">variant</span> | <span class="prop-type">'circle'<br>&#124;&nbsp;'rounded'<br>&#124;&nbsp;'square'</span> | <span class="prop-default">'circle'</span> | The shape of the avatar. |
3636

3737
The `ref` is forwarded to the root element.

packages/material-ui/src/Avatar/Avatar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ Avatar.propTypes = {
137137
*/
138138
src: PropTypes.string,
139139
/**
140-
* The `srcSet` attribute for the `img` element. Defines the set of images we will allow the browser to choose between by match size.
140+
* The `srcSet` attribute for the `img` element.
141+
* Use this attribute for responsive image display.
141142
*/
142143
srcSet: PropTypes.string,
143144
/**

0 commit comments

Comments
 (0)