Home > General Components > Typography

Typography

@wq/material’s <Typography/> component provides a formatted text component. For web, this is just Material UI’s <Typography/> component. The same API is provided for native by automatically selecting one of React Native Paper’s Typography components depending on the variant prop. <Typography/> is analogous to <h1>, <p>, <caption> in HTML.

Source

While @wq/react defines a placeholder implementation, @wq/material’s versions are more useful as reference:

  • Typography.js (@wq/material-web)
  • Typography.js (@wq/material-native)

The @wq/material-web implementation just exports Typography from @mui/material.