• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBox
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

TypographyProps

Represents the props of the KendoReact Typography component.

NameTypeDefaultDescription

children?

React.ReactNode

Determines the children nodes.

className?

string

Specifies a list of CSS classes that will be added to the element.

fontSize?

"small" | "large" | "medium" | "xsmall" | "xlarge"

Overrides the font size applied by the theme typography styles see example.

The possible values are:

  • xsmall
  • small
  • medium
  • large
  • xlarge

fontWeight?

"bold" | "normal" | "light"

Overrides the font weight applied by the theme typography styles see example.

The possible values are:

  • light—font-weight: 300
  • normal—font-weight: 400
  • bold—For Default and Bootstrap themes—font-weight: 700. For Material theme—font-weight: 500.

id?

string

Sets the id property of the top div element of the component.

margin?

MarginEnum | { bottom?: MarginEnum; left?: MarginEnum; right?: MarginEnum; top?: MarginEnum; }

Specifies the applied margin to the element see example.

The possible values for the Default and Material themes are:

  • xsmall —Applies 4px margin.
  • small —Applies 8px margin.
  • medium —Applies 12px margin.
  • large —Applies 16px margin.
  • xlarge —Applies 24px margin.
  • thin —Applies 2px margin.
  • hair —Applies 1px margin.
  • number —Passing a number will apply a margin of 4 times the passed number in pixels. The minimum number value is 0 and the maximum is 24.
  • object &smdash;Passing an object allows setting the margins for each side.

The possible values for the Bootstrap theme are:

  • xsmall —Applies 0.25rem margin.
  • small —Applies 0.5rem margin.
  • medium —Applies 0.75rem margin.
  • large —Applies 1rem margin.
  • xlarge —Applies 1.25rem margin.
  • thin —Applies 0.125rem margin.
  • hair —Applies 0.0625rem margin.
  • number —Passing a number will apply a margin equal to the passed number divided by 4 in rem units.

The minimum number value is 0 and the maximum is 24.

  • object &smdash;Passing an object allows setting the margins for each side.

style?

React.CSSProperties

Sets additional CSS styles to the element.

textAlign?

"center" | "left" | "right" | "justify"

Specifies the text align see example.

The possible values are:

  • left—Applies text-align: left
  • right—Applies text-align: right
  • center—Applies text-align: center
  • justify—Applies text-align: justify

textTransform?

"capitalize" | "lowercase" | "uppercase"

Specifies the text transform see example.

The possible values are:

  • lowercase—Applies text-transform: lowercase
  • uppercase—Applies text-transform: uppercase
  • capitalize—Applies text-transform: capitalize

themeColor?

"inherit" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "dark" | "light" | "inverse"

Specifies the theme color of the Typography see example.

The possible values are:

  • inherit—Applies coloring based on the current color.
  • primary —Applies coloring based on primary theme color.
  • secondary—Applies coloring based on secondary theme color.
  • tertiary— Applies coloring based on tertiary theme color.
  • info—Applies coloring based on info theme color.
  • success— Applies coloring based on success theme color.
  • warning— Applies coloring based on warning theme color.
  • error— Applies coloring based on error theme color.
  • dark— Applies coloring based on dark theme color.
  • light— Applies coloring based on light theme color.
  • inverse— Applies coloring based on inverse theme color.

You can use the style property to apply custom color related properties to the element.