Function: Text()
Text(
typographyProps):Element
The Text component is a wrapper around the Material-UI Typography component with a default fontWeight of 300. It's props extend from Material UI's Typography (opens in a new tab) component props, so every prop is interchangeable between those two.
Parameters
| Parameter | Type | Description |
|---|---|---|
typographyProps | TypographyProps<"span", object> | MUI TypographyProps (opens in a new tab) |
Returns
Element
See
Example
<Text variant="h6" fontWeight="400" fontSize='18px'>
Sample Text
</Text>Defined in
packages/react-material-ui/src/components/Text/Text.tsx:21 (opens in a new tab)