Skip to content

Commit

Permalink
docs(multiselect): add proptype documentation for titleText (#6641)
Browse files Browse the repository at this point in the history
* docs(multiselect): add proptype documentation for titleText

* fix(tests): update snapshots

Co-authored-by: TJ Egan <tw15egan@gmail.com>
  • Loading branch information
jendowns and tw15egan committed Aug 10, 2020
1 parent 213cbde commit 18a47d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3702,6 +3702,9 @@ Map {
"isRequired": true,
"type": "func",
},
"titleText": Object {
"type": "string",
},
"translateWithId": Object {
"type": "func",
},
Expand Down
6 changes: 6 additions & 0 deletions packages/react/src/components/MultiSelect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,12 @@ MultiSelect.propTypes = {
* Specify the direction of the multiselect dropdown. Can be either top or bottom.
*/
direction: PropTypes.oneOf(['top', 'bottom']),

/**
* Provide text to be used in a `<label>` element that is tied to the
* multiselect via ARIA attributes.
*/
titleText: PropTypes.string,
};

MultiSelect.defaultProps = {
Expand Down

0 comments on commit 18a47d4

Please sign in to comment.