From 03fa7c5d6f03ebcfa47fc7e8cce19b1dc04d19c0 Mon Sep 17 00:00:00 2001 From: Adeel Imran Date: Tue, 5 Jun 2018 01:49:42 +0500 Subject: [PATCH] [docs] Property !== attribute (#11694) * added inputRef example in text-field doc * [core] Property !== attribute --- packages/material-ui/src/Avatar/Avatar.js | 2 +- packages/material-ui/src/Input/Input.js | 2 +- packages/material-ui/src/NativeSelect/NativeSelect.js | 3 +-- packages/material-ui/src/Radio/Radio.js | 2 +- packages/material-ui/src/Select/Select.js | 4 ++-- packages/material-ui/src/Switch/Switch.js | 2 +- packages/material-ui/src/TextField/TextField.js | 2 +- packages/material-ui/src/internal/SwitchBase.js | 2 +- pages/api/avatar.md | 2 +- pages/api/input.md | 2 +- pages/api/native-select.md | 2 +- pages/api/radio.md | 2 +- pages/api/select.md | 2 +- pages/api/switch-base.md | 2 +- pages/api/switch.md | 2 +- pages/api/text-field.md | 2 +- 16 files changed, 17 insertions(+), 18 deletions(-) diff --git a/packages/material-ui/src/Avatar/Avatar.js b/packages/material-ui/src/Avatar/Avatar.js index 266b6ee90e4063..cfeeb55dc02ade 100644 --- a/packages/material-ui/src/Avatar/Avatar.js +++ b/packages/material-ui/src/Avatar/Avatar.js @@ -122,7 +122,7 @@ Avatar.propTypes = { */ component: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), /** - * Properties applied to the `img` element when the component + * Attributes applied to the `img` element when the component * is used to display an image. */ imgProps: PropTypes.object, diff --git a/packages/material-ui/src/Input/Input.js b/packages/material-ui/src/Input/Input.js index 11b873795fdecd..28d15859d25855 100644 --- a/packages/material-ui/src/Input/Input.js +++ b/packages/material-ui/src/Input/Input.js @@ -535,7 +535,7 @@ Input.propTypes = { */ inputComponent: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), /** - * Properties applied to the `input` element. + * Attributes applied to the `input` element. */ inputProps: PropTypes.object, /** diff --git a/packages/material-ui/src/NativeSelect/NativeSelect.js b/packages/material-ui/src/NativeSelect/NativeSelect.js index b96035a57bf094..d9d1caf7f7c419 100644 --- a/packages/material-ui/src/NativeSelect/NativeSelect.js +++ b/packages/material-ui/src/NativeSelect/NativeSelect.js @@ -102,8 +102,7 @@ NativeSelect.propTypes = { */ input: PropTypes.element, /** - * Properties applied to the `input` element. - * The properties are applied on the `select` element. + * Attributes applied to the `select` element. */ inputProps: PropTypes.object, /** diff --git a/packages/material-ui/src/Radio/Radio.js b/packages/material-ui/src/Radio/Radio.js index aa9fb2b4295555..6ae177045a630c 100644 --- a/packages/material-ui/src/Radio/Radio.js +++ b/packages/material-ui/src/Radio/Radio.js @@ -84,7 +84,7 @@ Radio.propTypes = { */ id: PropTypes.string, /** - * Properties applied to the `input` element. + * Attributes applied to the `input` element. */ inputProps: PropTypes.object, /** diff --git a/packages/material-ui/src/Select/Select.js b/packages/material-ui/src/Select/Select.js index 358a2b9539b48d..8fb245e2e44748 100644 --- a/packages/material-ui/src/Select/Select.js +++ b/packages/material-ui/src/Select/Select.js @@ -97,8 +97,8 @@ Select.propTypes = { */ input: PropTypes.element, /** - * Properties applied to the `input` element. - * When `native` is `true`, the properties are applied on the `select` element. + * Attributes applied to the `input` element. + * When `native` is `true`, the attributes are applied on the `select` element. */ inputProps: PropTypes.object, /** diff --git a/packages/material-ui/src/Switch/Switch.js b/packages/material-ui/src/Switch/Switch.js index 22841d10de18ef..1c652aa3103f5e 100644 --- a/packages/material-ui/src/Switch/Switch.js +++ b/packages/material-ui/src/Switch/Switch.js @@ -150,7 +150,7 @@ Switch.propTypes = { */ id: PropTypes.string, /** - * Properties applied to the `input` element. + * Attributes applied to the `input` element. */ inputProps: PropTypes.object, /** diff --git a/packages/material-ui/src/TextField/TextField.js b/packages/material-ui/src/TextField/TextField.js index 60256d073465e9..99b3265dd3b9b4 100644 --- a/packages/material-ui/src/TextField/TextField.js +++ b/packages/material-ui/src/TextField/TextField.js @@ -189,7 +189,7 @@ TextField.propTypes = { */ InputProps: PropTypes.object, /** - * Properties applied to the native `input` element. + * Attributes applied to the native `input` element. */ inputProps: PropTypes.object, /** diff --git a/packages/material-ui/src/internal/SwitchBase.js b/packages/material-ui/src/internal/SwitchBase.js index 0da8b7d209e3f7..681abb22dc1ddc 100644 --- a/packages/material-ui/src/internal/SwitchBase.js +++ b/packages/material-ui/src/internal/SwitchBase.js @@ -175,7 +175,7 @@ SwitchBase.propTypes = { */ indeterminateIcon: PropTypes.node, /** - * Properties applied to the `input` element. + * Attributes applied to the `input` element. */ inputProps: PropTypes.object, /** diff --git a/pages/api/avatar.md b/pages/api/avatar.md index 95ab55f77263eb..2877846d8fd362 100644 --- a/pages/api/avatar.md +++ b/pages/api/avatar.md @@ -16,7 +16,7 @@ filename: /packages/material-ui/src/Avatar/Avatar.js | children | node |   | Used to render icon or text elements inside the Avatar. `src` and `alt` props will not be used and no `img` will be rendered by default.
This can be an element, or just a string. | | classes | object |   | Override or extend the styles applied to the component. See [CSS API](#css-api) below for more details. | | component | union: string |
 func
| 'div' | The component used for the root node. Either a string to use a DOM element or a component. | -| imgProps | object |   | Properties applied to the `img` element when the component is used to display an image. | +| imgProps | object |   | Attributes applied to the `img` element when the component is used to display an image. | | sizes | string |   | The `sizes` attribute for the `img` element. | | src | string |   | The `src` attribute for the `img` element. | | srcSet | string |   | The `srcSet` attribute for the `img` element. | diff --git a/pages/api/input.md b/pages/api/input.md index 96931ddd5f9dc2..3897d69e0b8e34 100644 --- a/pages/api/input.md +++ b/pages/api/input.md @@ -24,7 +24,7 @@ filename: /packages/material-ui/src/Input/Input.js | fullWidth | bool | false | If `true`, the input will take up the full width of its container. | | id | string |   | The id of the `input` element. | | inputComponent | union: string |
 func
|   | The component used for the native input. Either a string to use a DOM element or a component. | -| inputProps | object |   | Properties applied to the `input` element. | +| inputProps | object |   | Attributes applied to the `input` element. | | inputRef | func |   | Use that property to pass a ref callback to the native input component. | | margin | enum: 'dense' |
 'none'
|   | If `dense`, will adjust vertical spacing. This is normally obtained via context from FormControl. | | multiline | bool | false | If `true`, a textarea element will be rendered. | diff --git a/pages/api/native-select.md b/pages/api/native-select.md index fba6d9f7c5db29..8cc95d71520298 100644 --- a/pages/api/native-select.md +++ b/pages/api/native-select.md @@ -16,7 +16,7 @@ An alternative to `