ListItemText API
Documentação da API para o componente React ListItemText . Aprenda sobre as propriedades disponíveis e a API CSS.
Importação
import ListItemText from '@mui/material/ListItemText';
// ou
import { ListItemText } from '@mui/material';Nome do componente
The nameMuiListItemText can be used when providing default props or style overrides in the theme.Propriedades
Propriedades do componente nativo também estão disponíveis.
| Nome | Tipo | Padrão | Descrição |
|---|---|---|---|
| children | node | Alias for the primary prop. | |
| classes | object | Sobrescreve ou extende os estilos aplicados para o componente. Veja a API CSS abaixo para maiores detalhes. | |
| disableTypography | bool | false | If true, the children won't be wrapped by a Typography component. This can be useful to render an alternative Typography variant by wrapping the children (or primary) text, and optional secondary text with the Typography component. |
| inset | bool | false | If true, the children are indented. This should be used if there is no left avatar or left icon. |
| primary | node | The main content element. | |
| primaryTypographyProps | object | These props will be forwarded to the primary typography component (as long as disableTypography is not true). | |
| secondary | node | The secondary content element. | |
| secondaryTypographyProps | object | These props will be forwarded to the secondary typography component (as long as disableTypography is not true). | |
| sx | Array<func | object | bool> | func | object | The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details. |
O
ref é encaminhado para o elemento raiz.CSS
| Nome da regra | Classe global | Descrição |
|---|---|---|
| root | .MuiListItemText-root | Estilos aplicados ao elemento raiz. |
| multiline | .MuiListItemText-multiline | Estilos aplicados para the Typography component se primary and secondary are set. |
| dense | .MuiListItemText-dense | Estilos aplicados para the Typography component se dense. |
| inset | .MuiListItemText-inset | Estilos aplicados para o elemento raiz se inset={true}. |
| primary | .MuiListItemText-primary | Estilos aplicados a the primary `Typography` component. |
| secondary | .MuiListItemText-secondary | Estilos aplicados a the secondary `Typography` component. |
Você pode sobrescrever o estilo do componente usando uma dessas opções de customização:
- Com um nome de classe global.
- Com um nome de regra como parte da propriedade
styleOverridesdo componente em um tema personalizado.