Skip to content

Commit

Permalink
Remove titles prop type from description
Browse files Browse the repository at this point in the history
  • Loading branch information
soltanloo committed Nov 6, 2019
1 parent 01bc65e commit 0eec5e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/pages/api/autocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi
| <span class="prop-name required">renderInput&nbsp;*</span> | <span class="prop-type">func</span> | | Render the input.<br><br>**Signature:**<br>`function(params: object) => ReactNode`<br>*params:* null |
| <span class="prop-name">renderOption</span> | <span class="prop-type">func</span> | | Render the option, use `getOptionLabel` by default.<br><br>**Signature:**<br>`function(option: any, state: object) => ReactNode`<br>*option:* The option to render.<br>*state:* The state of the component. |
| <span class="prop-name">renderTags</span> | <span class="prop-type">func</span> | | Render the selected value.<br><br>**Signature:**<br>`function(value: any) => ReactNode`<br>*value:* The `value` provided to the component. |
| <span class="prop-name">titles</span> | <span class="prop-type">{ clearPopup: string, closePopup: string, openPopup: string }</span> | <span class="prop-default">{ openPopup: 'Open popup', closePopup: 'Close popup', clearPopup: 'Clear',}</span> | Object of titles to display when hovering the arrow or clear buttons. |
| <span class="prop-name">titles</span> | <span class="prop-type">{ clearPopup: string, closePopup: string, openPopup: string }</span> | <span class="prop-default">{ openPopup: 'Open popup', closePopup: 'Close popup', clearPopup: 'Clear',}</span> | Titles to display when hovering the arrow or clear buttons. |
| <span class="prop-name">value</span> | <span class="prop-type">any</span> | | The input value. |

The `ref` is forwarded to the root element.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export interface AutocompleteProps
*/
renderTags?: (value: any, state: RenderValueState) => React.ReactNode;
/**
* Object of titles to display when hovering the arrow or clear buttons.
* Titles to display when hovering the arrow or clear buttons.
*/
titles?: {
openPopup: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui-lab/src/Autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ Autocomplete.propTypes = {
*/
renderTags: PropTypes.func,
/**
* Object of titles to display when hovering the arrow or clear buttons.
* Titles to display when hovering the arrow or clear buttons.
*/
titles: PropTypes.shape({
clearPopup: PropTypes.string.isRequired,
Expand Down

0 comments on commit 0eec5e4

Please sign in to comment.