From a618f46fc13d1a43b15371f823daf4191ccfaef5 Mon Sep 17 00:00:00 2001 From: Neto Chaves Date: Sun, 22 Mar 2020 15:11:32 -0300 Subject: [PATCH] yarn docs:api --- docs/pages/api-docs/autocomplete.md | 2 +- docs/src/pages/components/autocomplete/FilterMaxTags.js | 2 +- docs/src/pages/components/autocomplete/FilterMaxTags.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pages/api-docs/autocomplete.md b/docs/pages/api-docs/autocomplete.md index 14093ae1ed7814..428b6c5fe9890e 100644 --- a/docs/pages/api-docs/autocomplete.md +++ b/docs/pages/api-docs/autocomplete.md @@ -41,7 +41,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi | disabled | bool | false | If `true`, the input will be disabled. | | disableListWrap | bool | false | If `true`, the list box in the popup will not wrap focus. | | disablePortal | bool | false | Disable the portal behavior. The children stay within it's parent DOM hierarchy. | -| filterMax | number | | The numbers of items that will be visible | +| filterMaxTags | number | | The number of tags that will be visible. Set `-1` to display them all. | | filterOptions | func | | A filter function that determines the options that are eligible.

**Signature:**
`function(options: T[], state: object) => undefined`
*options:* The options to render.
*state:* The state of the component. | | filterSelectedOptions | bool | false | If `true`, hide the selected options from the list box. | | forcePopupIcon | 'auto'
| bool
| 'auto' | Force the visibility display of the popup icon. | diff --git a/docs/src/pages/components/autocomplete/FilterMaxTags.js b/docs/src/pages/components/autocomplete/FilterMaxTags.js index e8035b115e0e4b..60684e901b28b3 100644 --- a/docs/src/pages/components/autocomplete/FilterMaxTags.js +++ b/docs/src/pages/components/autocomplete/FilterMaxTags.js @@ -13,7 +13,7 @@ const useStyles = makeStyles(theme => ({ }, })); -export default function Tags() { +export default function FilterMaxTags() { const classes = useStyles(); return ( diff --git a/docs/src/pages/components/autocomplete/FilterMaxTags.tsx b/docs/src/pages/components/autocomplete/FilterMaxTags.tsx index 7347971eca1e64..bb273f94185484 100644 --- a/docs/src/pages/components/autocomplete/FilterMaxTags.tsx +++ b/docs/src/pages/components/autocomplete/FilterMaxTags.tsx @@ -1,7 +1,7 @@ /* eslint-disable no-use-before-define */ import React from 'react'; import Autocomplete from '@material-ui/lab/Autocomplete'; -import { makeStyles } from '@material-ui/core/styles'; +import { makeStyles, Theme } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; const useStyles = makeStyles((theme: Theme) => ({