API Reference
Rockets React API
react-material-ui
functions
Text

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

ParameterTypeDescription
typographyPropsTypographyProps<"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)