- {description}
+ {apiDescription}
{heading('import')}
{dangerousMarkdown(t('apiImportDifference'))}
- {componentDescription[userLanguage] &&
- dangerousMarkdown(componentDescription[userLanguage])}
+ {description && dangerousMarkdown(description)}
{componentStyles.name && (
{heading('component-name')}
diff --git a/docs/translations/component-descriptions-zh.json b/docs/translations/component-descriptions-zh.json
index 185c6b00c2256d..5e7303a359ff4e 100644
--- a/docs/translations/component-descriptions-zh.json
+++ b/docs/translations/component-descriptions-zh.json
@@ -1,37 +1,247 @@
{
- "ButtonBase": "`ButtonBase` contains as few styles as possible.\nIt aims to be a simple building block for creating a button.\nIt contains a load of style reset and some focus/ripple logic.",
- "Chip": "Chips represent complex entities in small blocks, such as a contact.",
- "CircularProgress": "## ARIA\n\nIf the progress bar is describing the loading progress of a particular region of a page,\nyou should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\nattribute to `true` on that region until it has finished loading.",
- "ClickAwayListener": "Listen for click events that occur somewhere in the document, outside of the element itself.\nFor instance, if you need to hide a menu when people click anywhere else on your page.",
- "Collapse": "The Collapse transition is used by the\n[Vertical Stepper](/components/steppers/#vertical-stepper) StepContent component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.",
- "CssBaseline": "Kickstart an elegant, consistent, and simple baseline to build upon.",
- "Dialog": "Dialogs are overlaid modal paper based components with a backdrop.",
- "Drawer": "The props of the [Modal](/api/modal/) component are available\nwhen `variant=\"temporary\"` is set.",
- "Fade": "The Fade transition is used by the [Modal](/components/modal/) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.",
- "FormControl": "Provides context such as filled/focused/error/required for form inputs.\nRelying on the context provides high flexibility and ensures that the state always stays\nconsistent across the children of the `FormControl`.\nThis context is used by the following components:\n\n - FormLabel\n - FormHelperText\n - Input\n - InputLabel\n\nYou can find one composition example below and more going to [the demos](/components/text-fields/#components).\n\n```jsx\n\n Email address\n \n We'll never share your email.\n\n```\n\n⚠️ Only one `InputBase` can be used within a FormControl because it create visual inconsistencies.\nFor instance, only one input can be focused at the same time, the state shouldn't be shared.",
- "FormControlLabel": "Drop in replacement of the `Radio`, `Switch` and `Checkbox` component.\nUse this component if you want to display an extra label.",
- "FormGroup": "`FormGroup` wraps controls such as `Checkbox` and `Switch`.\nIt provides compact row layout.\nFor the `Radio`, you should be using the `RadioGroup` component instead of this one.",
- "Grow": "The Grow transition is used by the [Tooltip](/components/tooltips/) and\n[Popover](/components/popover/) components.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.",
- "Hidden": "Responsively hides children based on the selected implementation.",
- "IconButton": "Refer to the [Icons](/components/icons/) section of the documentation\nregarding the available icon options.",
- "InputBase": "`InputBase` contains as few styles as possible.\nIt aims to be a simple building block for creating an input.\nIt contains a load of style reset and some state logic.",
- "LinearProgress": "## ARIA\n\nIf the progress bar is describing the loading progress of a particular region of a page,\nyou should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\nattribute to `true` on that region until it has finished loading.",
- "ListItem": "Uses an additional container component if `ListItemSecondaryAction` is the last child.",
- "ListItemAvatar": "A simple wrapper to apply `List` styles to an `Avatar`.",
- "ListItemIcon": "A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`.",
- "ListItemSecondaryAction": "Must be used as the last child of ListItem to function properly.",
- "MenuList": "A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.\nIt's exposed to help customization of the [`Menu`](/api/menu/) component. If you\nuse it separately you need to move focus into the component manually. Once\nthe focus is placed inside the component it is fully keyboard accessible.",
- "Modal": "Modal is a lower-level construct that is leveraged by the following components:\n\n- [Dialog](/api/dialog/)\n- [Drawer](/api/drawer/)\n- [Menu](/api/menu/)\n- [Popover](/api/popover/)\n\nIf you are creating a modal dialog, you probably want to use the [Dialog](/api/dialog/) component\nrather than directly using Modal.\n\nThis component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).",
- "NativeSelect": "An alternative to `` with a much smaller bundle size footprint.",
- "NoSsr": "NoSsr purposely removes components from the subject of Server Side Rendering (SSR).\n\nThis component can be useful in a variety of situations:\n- Escape hatch for broken dependencies not supporting SSR.\n- Improve the time-to-first paint on the client by only rendering above the fold.\n- Reduce the rendering time on the server.\n- Under too heavy server load, you can turn on service degradation.",
- "Popper": "Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.",
- "Portal": "Portals provide a first-class way to render children into a DOM node\nthat exists outside the DOM hierarchy of the parent component.",
- "Slide": "The Slide transition is used by the [Drawer](/components/drawers/) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.",
- "TableCell": "The component renders a `
` element when the parent context is a header\nor otherwise a `
` element.",
- "TablePagination": "A `TableCell` based component for placing inside `TableFooter` for pagination.",
- "TableRow": "Will automatically set dynamic row height\nbased on the material table element parent (head, body, etc).",
- "TableSortLabel": "A button based label for placing inside `TableCell` for column sorting.",
- "TextField": "The `TextField` is a convenience wrapper for the most common cases (80%).\nIt cannot be all things to all people, otherwise the API would grow out of control.\n\n## Advanced Configuration\n\nIt's important to understand that the text field is a simple abstraction\non top of the following components:\n\n- [FormControl](/api/form-control/)\n- [InputLabel](/api/input-label/)\n- [FilledInput](/api/filled-input/)\n- [OutlinedInput](/api/outlined-input/)\n- [Input](/api/input/)\n- [FormHelperText](/api/form-helper-text/)\n\nIf you wish to alter the props applied to the `input` element, you can do so as follows:\n\n```jsx\nconst inputProps = {\n step: 300,\n};\n\nreturn ;\n```\n\nFor advanced cases, please look at the source of TextField by clicking on the\n\"Edit this page\" button above. Consider either:\n\n- using the upper case props for passing values directly to the components\n- using the underlying components directly as shown in the demos",
- "Unstable_TrapFocus": "Utility component that locks focus inside the component.",
- "Zoom": "The Zoom transition can be used for the floating variant of the\n[Button](/components/buttons/#floating-action-buttons) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ "Accordion": { "name": "Accordion (扩展面板)" },
+ "AccordionActions": { "name": "AccordionActions" },
+ "AccordionDetails": { "name": "AccordionDetails" },
+ "AccordionSummary": { "name": "AccordionSummary" },
+ "Alert": { "name": "Alert" },
+ "AlertTitle": { "name": "AlertTitle" },
+ "AppBar": { "name": "AppBar" },
+ "Autocomplete": { "name": "Autocomplete" },
+ "Avatar": { "name": "Avatar" },
+ "AvatarGroup": { "name": "AvatarGroup" },
+ "Backdrop": { "name": "Backdrop" },
+ "Badge": { "name": "Badge" },
+ "BottomNavigation": { "name": "BottomNavigation" },
+ "BottomNavigationAction": { "name": "BottomNavigationAction" },
+ "Breadcrumbs": { "name": "Breadcrumbs" },
+ "Button": { "name": "Button" },
+ "ButtonBase": {
+ "name": "ButtonBase",
+ "description": "`ButtonBase` contains as few styles as possible.\nIt aims to be a simple building block for creating a button.\nIt contains a load of style reset and some focus/ripple logic."
+ },
+ "ButtonGroup": { "name": "ButtonGroup" },
+ "Card": { "name": "Card" },
+ "CardActionArea": { "name": "CardActionArea" },
+ "CardActions": { "name": "CardActions" },
+ "CardContent": { "name": "CardContent" },
+ "CardHeader": { "name": "CardHeader" },
+ "CardMedia": { "name": "CardMedia" },
+ "Checkbox": { "name": "Checkbox" },
+ "Chip": {
+ "name": "Chip",
+ "description": "Chips represent complex entities in small blocks, such as a contact."
+ },
+ "CircularProgress": {
+ "name": "CircularProgress",
+ "description": "## ARIA\n\nIf the progress bar is describing the loading progress of a particular region of a page,\nyou should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\nattribute to `true` on that region until it has finished loading."
+ },
+ "ClickAwayListener": {
+ "name": "ClickAwayListener",
+ "description": "Listen for click events that occur somewhere in the document, outside of the element itself.\nFor instance, if you need to hide a menu when people click anywhere else on your page."
+ },
+ "Collapse": {
+ "name": "Collapse",
+ "description": "The Collapse transition is used by the\n[Vertical Stepper](/components/steppers/#vertical-stepper) StepContent component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ },
+ "Container": { "name": "Container" },
+ "CssBaseline": {
+ "name": "CssBaseline",
+ "description": "Kickstart an elegant, consistent, and simple baseline to build upon."
+ },
+ "Dialog": {
+ "name": "Dialog",
+ "description": "Dialogs are overlaid modal paper based components with a backdrop."
+ },
+ "DialogActions": { "name": "DialogActions" },
+ "DialogContent": { "name": "DialogContent" },
+ "DialogContentText": { "name": "DialogContentText" },
+ "DialogTitle": { "name": "DialogTitle" },
+ "Divider": { "name": "Divider" },
+ "Drawer": {
+ "name": "Drawer",
+ "description": "The props of the [Modal](/api/modal/) component are available\nwhen `variant=\"temporary\"` is set."
+ },
+ "Fab": { "name": "Fab" },
+ "Fade": {
+ "name": "Fade",
+ "description": "The Fade transition is used by the [Modal](/components/modal/) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ },
+ "FilledInput": { "name": "FilledInput" },
+ "FormControl": {
+ "name": "FormControl",
+ "description": "Provides context such as filled/focused/error/required for form inputs.\nRelying on the context provides high flexibility and ensures that the state always stays\nconsistent across the children of the `FormControl`.\nThis context is used by the following components:\n\n - FormLabel\n - FormHelperText\n - Input\n - InputLabel\n\nYou can find one composition example below and more going to [the demos](/components/text-fields/#components).\n\n```jsx\n\n Email address\n \n We'll never share your email.\n\n```\n\n⚠️ Only one `InputBase` can be used within a FormControl because it create visual inconsistencies.\nFor instance, only one input can be focused at the same time, the state shouldn't be shared."
+ },
+ "FormControlLabel": {
+ "name": "FormControlLabel",
+ "description": "Drop in replacement of the `Radio`, `Switch` and `Checkbox` component.\nUse this component if you want to display an extra label."
+ },
+ "FormGroup": {
+ "name": "FormGroup",
+ "description": "`FormGroup` wraps controls such as `Checkbox` and `Switch`.\nIt provides compact row layout.\nFor the `Radio`, you should be using the `RadioGroup` component instead of this one."
+ },
+ "FormHelperText": { "name": "FormHelperText" },
+ "FormLabel": { "name": "FormLabel" },
+ "Grid": { "name": "Grid" },
+ "Grow": {
+ "name": "Grow",
+ "description": "The Grow transition is used by the [Tooltip](/components/tooltips/) and\n[Popover](/components/popover/) components.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ },
+ "Hidden": {
+ "name": "Hidden",
+ "description": "Responsively hides children based on the selected implementation."
+ },
+ "Icon": { "name": "Icon" },
+ "IconButton": {
+ "name": "IconButton",
+ "description": "Refer to the [Icons](/components/icons/) section of the documentation\nregarding the available icon options."
+ },
+ "ImageList": { "name": "ImageList" },
+ "ImageListItem": { "name": "ImageListItem" },
+ "ImageListItemBar": { "name": "ImageListItemBar" },
+ "Input": { "name": "Input" },
+ "InputAdornment": { "name": "InputAdornment" },
+ "InputBase": {
+ "name": "InputBase",
+ "description": "`InputBase` contains as few styles as possible.\nIt aims to be a simple building block for creating an input.\nIt contains a load of style reset and some state logic."
+ },
+ "InputLabel": { "name": "InputLabel" },
+ "LinearProgress": {
+ "name": "LinearProgress",
+ "description": "## ARIA\n\nIf the progress bar is describing the loading progress of a particular region of a page,\nyou should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\nattribute to `true` on that region until it has finished loading."
+ },
+ "Link": { "name": "Link" },
+ "List": { "name": "List" },
+ "ListItem": {
+ "name": "ListItem",
+ "description": "Uses an additional container component if `ListItemSecondaryAction` is the last child."
+ },
+ "ListItemAvatar": {
+ "name": "ListItemAvatar",
+ "description": "A simple wrapper to apply `List` styles to an `Avatar`."
+ },
+ "ListItemIcon": {
+ "name": "ListItemIcon",
+ "description": "A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`."
+ },
+ "ListItemSecondaryAction": {
+ "name": "ListItemSecondaryAction",
+ "description": "Must be used as the last child of ListItem to function properly."
+ },
+ "ListItemText": { "name": "ListItemText" },
+ "ListSubheader": { "name": "ListSubheader" },
+ "LoadingButton": { "name": "LoadingButton" },
+ "Menu": { "name": "Menu" },
+ "MenuItem": { "name": "MenuItem" },
+ "MenuList": {
+ "name": "MenuList",
+ "description": "A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.\nIt's exposed to help customization of the [`Menu`](/api/menu/) component. If you\nuse it separately you need to move focus into the component manually. Once\nthe focus is placed inside the component it is fully keyboard accessible."
+ },
+ "MobileStepper": { "name": "MobileStepper" },
+ "Modal": {
+ "name": "Modal",
+ "description": "Modal is a lower-level construct that is leveraged by the following components:\n\n- [Dialog](/api/dialog/)\n- [Drawer](/api/drawer/)\n- [Menu](/api/menu/)\n- [Popover](/api/popover/)\n\nIf you are creating a modal dialog, you probably want to use the [Dialog](/api/dialog/) component\nrather than directly using Modal.\n\nThis component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals)."
+ },
+ "NativeSelect": {
+ "name": "NativeSelect",
+ "description": "An alternative to `` with a much smaller bundle size footprint."
+ },
+ "NoSsr": {
+ "name": "NoSsr",
+ "description": "NoSsr purposely removes components from the subject of Server Side Rendering (SSR).\n\nThis component can be useful in a variety of situations:\n- Escape hatch for broken dependencies not supporting SSR.\n- Improve the time-to-first paint on the client by only rendering above the fold.\n- Reduce the rendering time on the server.\n- Under too heavy server load, you can turn on service degradation."
+ },
+ "OutlinedInput": { "name": "OutlinedInput" },
+ "Pagination": { "name": "Pagination" },
+ "PaginationItem": { "name": "PaginationItem" },
+ "Paper": { "name": "Paper" },
+ "Popover": { "name": "Popover" },
+ "Popper": {
+ "name": "Popper",
+ "description": "Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning."
+ },
+ "Portal": {
+ "name": "Portal",
+ "description": "Portals provide a first-class way to render children into a DOM node\nthat exists outside the DOM hierarchy of the parent component."
+ },
+ "Radio": { "name": "Radio" },
+ "RadioGroup": { "name": "RadioGroup" },
+ "Rating": { "name": "Rating" },
+ "ScopedCssBaseline": { "name": "ScopedCssBaseline" },
+ "Select": { "name": "Select" },
+ "Skeleton": { "name": "Skeleton" },
+ "Slide": {
+ "name": "Slide",
+ "description": "The Slide transition is used by the [Drawer](/components/drawers/) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ },
+ "Slider": { "name": "Slider" },
+ "SliderStyled": { "name": "SliderStyled" },
+ "SliderUnstyled": { "name": "SliderUnstyled" },
+ "Snackbar": { "name": "Snackbar" },
+ "SnackbarContent": { "name": "SnackbarContent" },
+ "SpeedDial": { "name": "SpeedDial" },
+ "SpeedDialAction": { "name": "SpeedDialAction" },
+ "SpeedDialIcon": { "name": "SpeedDialIcon" },
+ "Step": { "name": "Step" },
+ "StepButton": { "name": "StepButton" },
+ "StepConnector": { "name": "StepConnector" },
+ "StepContent": { "name": "StepContent" },
+ "StepIcon": { "name": "StepIcon" },
+ "StepLabel": { "name": "StepLabel" },
+ "Stepper": { "name": "Stepper" },
+ "SvgIcon": { "name": "SvgIcon" },
+ "SwipeableDrawer": { "name": "SwipeableDrawer" },
+ "Switch": { "name": "Switch" },
+ "Tab": { "name": "Tab" },
+ "TabContext": { "name": "TabContext" },
+ "TabList": { "name": "TabList" },
+ "TabPanel": { "name": "TabPanel" },
+ "TabScrollButton": { "name": "TabScrollButton" },
+ "Table": { "name": "Table" },
+ "TableBody": { "name": "TableBody" },
+ "TableCell": {
+ "name": "TableCell",
+ "description": "The component renders a `
` element when the parent context is a header\nor otherwise a `
` element."
+ },
+ "TableContainer": { "name": "TableContainer" },
+ "TableFooter": { "name": "TableFooter" },
+ "TableHead": { "name": "TableHead" },
+ "TablePagination": {
+ "name": "TablePagination",
+ "description": "A `TableCell` based component for placing inside `TableFooter` for pagination."
+ },
+ "TableRow": {
+ "name": "TableRow",
+ "description": "Will automatically set dynamic row height\nbased on the material table element parent (head, body, etc)."
+ },
+ "TableSortLabel": {
+ "name": "TableSortLabel",
+ "description": "A button based label for placing inside `TableCell` for column sorting."
+ },
+ "Tabs": { "name": "Tabs" },
+ "TextField": {
+ "name": "TextField",
+ "description": "The `TextField` is a convenience wrapper for the most common cases (80%).\nIt cannot be all things to all people, otherwise the API would grow out of control.\n\n## Advanced Configuration\n\nIt's important to understand that the text field is a simple abstraction\non top of the following components:\n\n- [FormControl](/api/form-control/)\n- [InputLabel](/api/input-label/)\n- [FilledInput](/api/filled-input/)\n- [OutlinedInput](/api/outlined-input/)\n- [Input](/api/input/)\n- [FormHelperText](/api/form-helper-text/)\n\nIf you wish to alter the props applied to the `input` element, you can do so as follows:\n\n```jsx\nconst inputProps = {\n step: 300,\n};\n\nreturn ;\n```\n\nFor advanced cases, please look at the source of TextField by clicking on the\n\"Edit this page\" button above. Consider either:\n\n- using the upper case props for passing values directly to the components\n- using the underlying components directly as shown in the demos"
+ },
+ "TextareaAutosize": { "name": "TextareaAutosize" },
+ "Timeline": { "name": "Timeline" },
+ "TimelineConnector": { "name": "TimelineConnector" },
+ "TimelineContent": { "name": "TimelineContent" },
+ "TimelineDot": { "name": "TimelineDot" },
+ "TimelineItem": { "name": "TimelineItem" },
+ "TimelineOppositeContent": { "name": "TimelineOppositeContent" },
+ "TimelineSeparator": { "name": "TimelineSeparator" },
+ "ToggleButton": { "name": "ToggleButton" },
+ "ToggleButtonGroup": { "name": "ToggleButtonGroup" },
+ "Toolbar": { "name": "Toolbar" },
+ "Tooltip": { "name": "Tooltip" },
+ "TreeItem": { "name": "TreeItem" },
+ "TreeView": { "name": "TreeView" },
+ "Typography": { "name": "Typography" },
+ "Unstable_TrapFocus": {
+ "name": "Unstable_TrapFocus",
+ "description": "Utility component that locks focus inside the component."
+ },
+ "Zoom": {
+ "name": "Zoom",
+ "description": "The Zoom transition can be used for the floating variant of the\n[Button](/components/buttons/#floating-action-buttons) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ }
}
diff --git a/docs/translations/component-descriptions.json b/docs/translations/component-descriptions.json
index 185c6b00c2256d..ee41d74729b4a7 100644
--- a/docs/translations/component-descriptions.json
+++ b/docs/translations/component-descriptions.json
@@ -1,37 +1,247 @@
{
- "ButtonBase": "`ButtonBase` contains as few styles as possible.\nIt aims to be a simple building block for creating a button.\nIt contains a load of style reset and some focus/ripple logic.",
- "Chip": "Chips represent complex entities in small blocks, such as a contact.",
- "CircularProgress": "## ARIA\n\nIf the progress bar is describing the loading progress of a particular region of a page,\nyou should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\nattribute to `true` on that region until it has finished loading.",
- "ClickAwayListener": "Listen for click events that occur somewhere in the document, outside of the element itself.\nFor instance, if you need to hide a menu when people click anywhere else on your page.",
- "Collapse": "The Collapse transition is used by the\n[Vertical Stepper](/components/steppers/#vertical-stepper) StepContent component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.",
- "CssBaseline": "Kickstart an elegant, consistent, and simple baseline to build upon.",
- "Dialog": "Dialogs are overlaid modal paper based components with a backdrop.",
- "Drawer": "The props of the [Modal](/api/modal/) component are available\nwhen `variant=\"temporary\"` is set.",
- "Fade": "The Fade transition is used by the [Modal](/components/modal/) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.",
- "FormControl": "Provides context such as filled/focused/error/required for form inputs.\nRelying on the context provides high flexibility and ensures that the state always stays\nconsistent across the children of the `FormControl`.\nThis context is used by the following components:\n\n - FormLabel\n - FormHelperText\n - Input\n - InputLabel\n\nYou can find one composition example below and more going to [the demos](/components/text-fields/#components).\n\n```jsx\n\n Email address\n \n We'll never share your email.\n\n```\n\n⚠️ Only one `InputBase` can be used within a FormControl because it create visual inconsistencies.\nFor instance, only one input can be focused at the same time, the state shouldn't be shared.",
- "FormControlLabel": "Drop in replacement of the `Radio`, `Switch` and `Checkbox` component.\nUse this component if you want to display an extra label.",
- "FormGroup": "`FormGroup` wraps controls such as `Checkbox` and `Switch`.\nIt provides compact row layout.\nFor the `Radio`, you should be using the `RadioGroup` component instead of this one.",
- "Grow": "The Grow transition is used by the [Tooltip](/components/tooltips/) and\n[Popover](/components/popover/) components.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.",
- "Hidden": "Responsively hides children based on the selected implementation.",
- "IconButton": "Refer to the [Icons](/components/icons/) section of the documentation\nregarding the available icon options.",
- "InputBase": "`InputBase` contains as few styles as possible.\nIt aims to be a simple building block for creating an input.\nIt contains a load of style reset and some state logic.",
- "LinearProgress": "## ARIA\n\nIf the progress bar is describing the loading progress of a particular region of a page,\nyou should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\nattribute to `true` on that region until it has finished loading.",
- "ListItem": "Uses an additional container component if `ListItemSecondaryAction` is the last child.",
- "ListItemAvatar": "A simple wrapper to apply `List` styles to an `Avatar`.",
- "ListItemIcon": "A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`.",
- "ListItemSecondaryAction": "Must be used as the last child of ListItem to function properly.",
- "MenuList": "A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.\nIt's exposed to help customization of the [`Menu`](/api/menu/) component. If you\nuse it separately you need to move focus into the component manually. Once\nthe focus is placed inside the component it is fully keyboard accessible.",
- "Modal": "Modal is a lower-level construct that is leveraged by the following components:\n\n- [Dialog](/api/dialog/)\n- [Drawer](/api/drawer/)\n- [Menu](/api/menu/)\n- [Popover](/api/popover/)\n\nIf you are creating a modal dialog, you probably want to use the [Dialog](/api/dialog/) component\nrather than directly using Modal.\n\nThis component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).",
- "NativeSelect": "An alternative to `` with a much smaller bundle size footprint.",
- "NoSsr": "NoSsr purposely removes components from the subject of Server Side Rendering (SSR).\n\nThis component can be useful in a variety of situations:\n- Escape hatch for broken dependencies not supporting SSR.\n- Improve the time-to-first paint on the client by only rendering above the fold.\n- Reduce the rendering time on the server.\n- Under too heavy server load, you can turn on service degradation.",
- "Popper": "Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.",
- "Portal": "Portals provide a first-class way to render children into a DOM node\nthat exists outside the DOM hierarchy of the parent component.",
- "Slide": "The Slide transition is used by the [Drawer](/components/drawers/) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.",
- "TableCell": "The component renders a `
` element when the parent context is a header\nor otherwise a `
` element.",
- "TablePagination": "A `TableCell` based component for placing inside `TableFooter` for pagination.",
- "TableRow": "Will automatically set dynamic row height\nbased on the material table element parent (head, body, etc).",
- "TableSortLabel": "A button based label for placing inside `TableCell` for column sorting.",
- "TextField": "The `TextField` is a convenience wrapper for the most common cases (80%).\nIt cannot be all things to all people, otherwise the API would grow out of control.\n\n## Advanced Configuration\n\nIt's important to understand that the text field is a simple abstraction\non top of the following components:\n\n- [FormControl](/api/form-control/)\n- [InputLabel](/api/input-label/)\n- [FilledInput](/api/filled-input/)\n- [OutlinedInput](/api/outlined-input/)\n- [Input](/api/input/)\n- [FormHelperText](/api/form-helper-text/)\n\nIf you wish to alter the props applied to the `input` element, you can do so as follows:\n\n```jsx\nconst inputProps = {\n step: 300,\n};\n\nreturn ;\n```\n\nFor advanced cases, please look at the source of TextField by clicking on the\n\"Edit this page\" button above. Consider either:\n\n- using the upper case props for passing values directly to the components\n- using the underlying components directly as shown in the demos",
- "Unstable_TrapFocus": "Utility component that locks focus inside the component.",
- "Zoom": "The Zoom transition can be used for the floating variant of the\n[Button](/components/buttons/#floating-action-buttons) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ "Accordion": { "name": "Accordion" },
+ "AccordionActions": { "name": "AccordionActions" },
+ "AccordionDetails": { "name": "AccordionDetails" },
+ "AccordionSummary": { "name": "AccordionSummary" },
+ "Alert": { "name": "Alert" },
+ "AlertTitle": { "name": "AlertTitle" },
+ "AppBar": { "name": "AppBar" },
+ "Autocomplete": { "name": "Autocomplete" },
+ "Avatar": { "name": "Avatar" },
+ "AvatarGroup": { "name": "AvatarGroup" },
+ "Backdrop": { "name": "Backdrop" },
+ "Badge": { "name": "Badge" },
+ "BottomNavigation": { "name": "BottomNavigation" },
+ "BottomNavigationAction": { "name": "BottomNavigationAction" },
+ "Breadcrumbs": { "name": "Breadcrumbs" },
+ "Button": { "name": "Button" },
+ "ButtonBase": {
+ "name": "ButtonBase",
+ "description": "`ButtonBase` contains as few styles as possible.\nIt aims to be a simple building block for creating a button.\nIt contains a load of style reset and some focus/ripple logic."
+ },
+ "ButtonGroup": { "name": "ButtonGroup" },
+ "Card": { "name": "Card" },
+ "CardActionArea": { "name": "CardActionArea" },
+ "CardActions": { "name": "CardActions" },
+ "CardContent": { "name": "CardContent" },
+ "CardHeader": { "name": "CardHeader" },
+ "CardMedia": { "name": "CardMedia" },
+ "Checkbox": { "name": "Checkbox" },
+ "Chip": {
+ "name": "Chip",
+ "description": "Chips represent complex entities in small blocks, such as a contact."
+ },
+ "CircularProgress": {
+ "name": "CircularProgress",
+ "description": "## ARIA\n\nIf the progress bar is describing the loading progress of a particular region of a page,\nyou should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\nattribute to `true` on that region until it has finished loading."
+ },
+ "ClickAwayListener": {
+ "name": "ClickAwayListener",
+ "description": "Listen for click events that occur somewhere in the document, outside of the element itself.\nFor instance, if you need to hide a menu when people click anywhere else on your page."
+ },
+ "Collapse": {
+ "name": "Collapse",
+ "description": "The Collapse transition is used by the\n[Vertical Stepper](/components/steppers/#vertical-stepper) StepContent component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ },
+ "Container": { "name": "Container" },
+ "CssBaseline": {
+ "name": "CssBaseline",
+ "description": "Kickstart an elegant, consistent, and simple baseline to build upon."
+ },
+ "Dialog": {
+ "name": "Dialog",
+ "description": "Dialogs are overlaid modal paper based components with a backdrop."
+ },
+ "DialogActions": { "name": "DialogActions" },
+ "DialogContent": { "name": "DialogContent" },
+ "DialogContentText": { "name": "DialogContentText" },
+ "DialogTitle": { "name": "DialogTitle" },
+ "Divider": { "name": "Divider" },
+ "Drawer": {
+ "name": "Drawer",
+ "description": "The props of the [Modal](/api/modal/) component are available\nwhen `variant=\"temporary\"` is set."
+ },
+ "Fab": { "name": "Fab" },
+ "Fade": {
+ "name": "Fade",
+ "description": "The Fade transition is used by the [Modal](/components/modal/) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ },
+ "FilledInput": { "name": "FilledInput" },
+ "FormControl": {
+ "name": "FormControl",
+ "description": "Provides context such as filled/focused/error/required for form inputs.\nRelying on the context provides high flexibility and ensures that the state always stays\nconsistent across the children of the `FormControl`.\nThis context is used by the following components:\n\n - FormLabel\n - FormHelperText\n - Input\n - InputLabel\n\nYou can find one composition example below and more going to [the demos](/components/text-fields/#components).\n\n```jsx\n\n Email address\n \n We'll never share your email.\n\n```\n\n⚠️ Only one `InputBase` can be used within a FormControl because it create visual inconsistencies.\nFor instance, only one input can be focused at the same time, the state shouldn't be shared."
+ },
+ "FormControlLabel": {
+ "name": "FormControlLabel",
+ "description": "Drop in replacement of the `Radio`, `Switch` and `Checkbox` component.\nUse this component if you want to display an extra label."
+ },
+ "FormGroup": {
+ "name": "FormGroup",
+ "description": "`FormGroup` wraps controls such as `Checkbox` and `Switch`.\nIt provides compact row layout.\nFor the `Radio`, you should be using the `RadioGroup` component instead of this one."
+ },
+ "FormHelperText": { "name": "FormHelperText" },
+ "FormLabel": { "name": "FormLabel" },
+ "Grid": { "name": "Grid" },
+ "Grow": {
+ "name": "Grow",
+ "description": "The Grow transition is used by the [Tooltip](/components/tooltips/) and\n[Popover](/components/popover/) components.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ },
+ "Hidden": {
+ "name": "Hidden",
+ "description": "Responsively hides children based on the selected implementation."
+ },
+ "Icon": { "name": "Icon" },
+ "IconButton": {
+ "name": "IconButton",
+ "description": "Refer to the [Icons](/components/icons/) section of the documentation\nregarding the available icon options."
+ },
+ "ImageList": { "name": "ImageList" },
+ "ImageListItem": { "name": "ImageListItem" },
+ "ImageListItemBar": { "name": "ImageListItemBar" },
+ "Input": { "name": "Input" },
+ "InputAdornment": { "name": "InputAdornment" },
+ "InputBase": {
+ "name": "InputBase",
+ "description": "`InputBase` contains as few styles as possible.\nIt aims to be a simple building block for creating an input.\nIt contains a load of style reset and some state logic."
+ },
+ "InputLabel": { "name": "InputLabel" },
+ "LinearProgress": {
+ "name": "LinearProgress",
+ "description": "## ARIA\n\nIf the progress bar is describing the loading progress of a particular region of a page,\nyou should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\nattribute to `true` on that region until it has finished loading."
+ },
+ "Link": { "name": "Link" },
+ "List": { "name": "List" },
+ "ListItem": {
+ "name": "ListItem",
+ "description": "Uses an additional container component if `ListItemSecondaryAction` is the last child."
+ },
+ "ListItemAvatar": {
+ "name": "ListItemAvatar",
+ "description": "A simple wrapper to apply `List` styles to an `Avatar`."
+ },
+ "ListItemIcon": {
+ "name": "ListItemIcon",
+ "description": "A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`."
+ },
+ "ListItemSecondaryAction": {
+ "name": "ListItemSecondaryAction",
+ "description": "Must be used as the last child of ListItem to function properly."
+ },
+ "ListItemText": { "name": "ListItemText" },
+ "ListSubheader": { "name": "ListSubheader" },
+ "LoadingButton": { "name": "LoadingButton" },
+ "Menu": { "name": "Menu" },
+ "MenuItem": { "name": "MenuItem" },
+ "MenuList": {
+ "name": "MenuList",
+ "description": "A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.\nIt's exposed to help customization of the [`Menu`](/api/menu/) component. If you\nuse it separately you need to move focus into the component manually. Once\nthe focus is placed inside the component it is fully keyboard accessible."
+ },
+ "MobileStepper": { "name": "MobileStepper" },
+ "Modal": {
+ "name": "Modal",
+ "description": "Modal is a lower-level construct that is leveraged by the following components:\n\n- [Dialog](/api/dialog/)\n- [Drawer](/api/drawer/)\n- [Menu](/api/menu/)\n- [Popover](/api/popover/)\n\nIf you are creating a modal dialog, you probably want to use the [Dialog](/api/dialog/) component\nrather than directly using Modal.\n\nThis component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals)."
+ },
+ "NativeSelect": {
+ "name": "NativeSelect",
+ "description": "An alternative to `` with a much smaller bundle size footprint."
+ },
+ "NoSsr": {
+ "name": "NoSsr",
+ "description": "NoSsr purposely removes components from the subject of Server Side Rendering (SSR).\n\nThis component can be useful in a variety of situations:\n- Escape hatch for broken dependencies not supporting SSR.\n- Improve the time-to-first paint on the client by only rendering above the fold.\n- Reduce the rendering time on the server.\n- Under too heavy server load, you can turn on service degradation."
+ },
+ "OutlinedInput": { "name": "OutlinedInput" },
+ "Pagination": { "name": "Pagination" },
+ "PaginationItem": { "name": "PaginationItem" },
+ "Paper": { "name": "Paper" },
+ "Popover": { "name": "Popover" },
+ "Popper": {
+ "name": "Popper",
+ "description": "Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning."
+ },
+ "Portal": {
+ "name": "Portal",
+ "description": "Portals provide a first-class way to render children into a DOM node\nthat exists outside the DOM hierarchy of the parent component."
+ },
+ "Radio": { "name": "Radio" },
+ "RadioGroup": { "name": "RadioGroup" },
+ "Rating": { "name": "Rating" },
+ "ScopedCssBaseline": { "name": "ScopedCssBaseline" },
+ "Select": { "name": "Select" },
+ "Skeleton": { "name": "Skeleton" },
+ "Slide": {
+ "name": "Slide",
+ "description": "The Slide transition is used by the [Drawer](/components/drawers/) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ },
+ "Slider": { "name": "Slider" },
+ "SliderStyled": { "name": "SliderStyled" },
+ "SliderUnstyled": { "name": "SliderUnstyled" },
+ "Snackbar": { "name": "Snackbar" },
+ "SnackbarContent": { "name": "SnackbarContent" },
+ "SpeedDial": { "name": "SpeedDial" },
+ "SpeedDialAction": { "name": "SpeedDialAction" },
+ "SpeedDialIcon": { "name": "SpeedDialIcon" },
+ "Step": { "name": "Step" },
+ "StepButton": { "name": "StepButton" },
+ "StepConnector": { "name": "StepConnector" },
+ "StepContent": { "name": "StepContent" },
+ "StepIcon": { "name": "StepIcon" },
+ "StepLabel": { "name": "StepLabel" },
+ "Stepper": { "name": "Stepper" },
+ "SvgIcon": { "name": "SvgIcon" },
+ "SwipeableDrawer": { "name": "SwipeableDrawer" },
+ "Switch": { "name": "Switch" },
+ "Tab": { "name": "Tab" },
+ "TabContext": { "name": "TabContext" },
+ "TabList": { "name": "TabList" },
+ "TabPanel": { "name": "TabPanel" },
+ "TabScrollButton": { "name": "TabScrollButton" },
+ "Table": { "name": "Table" },
+ "TableBody": { "name": "TableBody" },
+ "TableCell": {
+ "name": "TableCell",
+ "description": "The component renders a `
` element when the parent context is a header\nor otherwise a `
` element."
+ },
+ "TableContainer": { "name": "TableContainer" },
+ "TableFooter": { "name": "TableFooter" },
+ "TableHead": { "name": "TableHead" },
+ "TablePagination": {
+ "name": "TablePagination",
+ "description": "A `TableCell` based component for placing inside `TableFooter` for pagination."
+ },
+ "TableRow": {
+ "name": "TableRow",
+ "description": "Will automatically set dynamic row height\nbased on the material table element parent (head, body, etc)."
+ },
+ "TableSortLabel": {
+ "name": "TableSortLabel",
+ "description": "A button based label for placing inside `TableCell` for column sorting."
+ },
+ "Tabs": { "name": "Tabs" },
+ "TextField": {
+ "name": "TextField",
+ "description": "The `TextField` is a convenience wrapper for the most common cases (80%).\nIt cannot be all things to all people, otherwise the API would grow out of control.\n\n## Advanced Configuration\n\nIt's important to understand that the text field is a simple abstraction\non top of the following components:\n\n- [FormControl](/api/form-control/)\n- [InputLabel](/api/input-label/)\n- [FilledInput](/api/filled-input/)\n- [OutlinedInput](/api/outlined-input/)\n- [Input](/api/input/)\n- [FormHelperText](/api/form-helper-text/)\n\nIf you wish to alter the props applied to the `input` element, you can do so as follows:\n\n```jsx\nconst inputProps = {\n step: 300,\n};\n\nreturn ;\n```\n\nFor advanced cases, please look at the source of TextField by clicking on the\n\"Edit this page\" button above. Consider either:\n\n- using the upper case props for passing values directly to the components\n- using the underlying components directly as shown in the demos"
+ },
+ "TextareaAutosize": { "name": "TextareaAutosize" },
+ "Timeline": { "name": "Timeline" },
+ "TimelineConnector": { "name": "TimelineConnector" },
+ "TimelineContent": { "name": "TimelineContent" },
+ "TimelineDot": { "name": "TimelineDot" },
+ "TimelineItem": { "name": "TimelineItem" },
+ "TimelineOppositeContent": { "name": "TimelineOppositeContent" },
+ "TimelineSeparator": { "name": "TimelineSeparator" },
+ "ToggleButton": { "name": "ToggleButton" },
+ "ToggleButtonGroup": { "name": "ToggleButtonGroup" },
+ "Toolbar": { "name": "Toolbar" },
+ "Tooltip": { "name": "Tooltip" },
+ "TreeItem": { "name": "TreeItem" },
+ "TreeView": { "name": "TreeView" },
+ "Typography": { "name": "Typography" },
+ "Unstable_TrapFocus": {
+ "name": "Unstable_TrapFocus",
+ "description": "Utility component that locks focus inside the component."
+ },
+ "Zoom": {
+ "name": "Zoom",
+ "description": "The Zoom transition can be used for the floating variant of the\n[Button](/components/buttons/#floating-action-buttons) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally."
+ }
}
diff --git a/docs/translations/translations-zh.json b/docs/translations/translations-zh.json
index dfe296a49e7c1d..771e0e7b8109cd 100644
--- a/docs/translations/translations-zh.json
+++ b/docs/translations/translations-zh.json
@@ -17,7 +17,7 @@
"checkoutTitle": "支付",
"close": "关闭",
"codesandbox": "在 CodeSandbox 中编辑",
- "componentName": "组件名称",
+ "component-name": "组件名称",
"copiedSource": "源代码已被复制到你的剪贴板。\n",
"copiedSourceLink": "源代码的链接已被复制到你的剪贴板。\n",
"copySource": "复制源代码",
@@ -27,6 +27,7 @@
"dashboardTitle": "管理面板",
"decreaseSpacing": "减少间距",
"default": "缺省",
+ "demos": "Demos (演示)",
"demoToolbarLabel": "demo 源",
"description": "描述",
"diamondSponsors": "钻石赞助商",
@@ -50,6 +51,7 @@
"homeQuickWord": "来自我们的赞助商的一个简短概括:",
"import": "Import (进口)",
"increaseSpacing": "增加间距",
+ "inheritance": "遗产",
"initialFocusLabel": "我们将一个通用的容器编译成测试我们组件的键盘导航功能。",
"installation": "安装",
"installButton": "阅读安装文档",