Tailwind CSS Typography - Props

The following props are available for typography component. These are the custom props that come with we've added for the typography component and you can use all the other native props as well.

AttributeTypeDescriptionDefault
variantVariantChange typography variantparagraph
colorColorChange typography colorinherit
textGradientbooleanChange typography color into a gradient colorfalse
aselementChange the typography rendered elementundefined
classNamestringAdd custom className for typography''
childrennodeAdd content for typographyNo default value it's a required prop.


For TypeScript Only

import type { TypographyProps } from "@material-tailwind/react";

Types - Variant

type variant =
  | "h1"
  | "h2"
  | "h3"
  | "h4"
  | "h5"
  | "h6"
  | "lead"
  | "paragraph"
  | "small";

Types - Color

type color =
  | "inherit"
  | "current"
  | "black"
  | "white"
  | "blue-gray"
  | "gray"
  | "brown"
  | "deep-orange"
  | "orange"
  | "amber"
  | "yellow"
  | "lime"
  | "light-green"
  | "green"
  | "teal"
  | "cyan"
  | "light-blue"
  | "blue"
  | "indigo"
  | "deep-purple"
  | "purple"
  | "pink"
  | "red";
Edit this page on Github