DocsExamplesMore examples

Examples

Conditionally Style Mui Table Row

Body rows get their class from a function of the row: rows with an age over 50 are tinted red, and every row is in italics.

Try it

  1. Click Age and choose Sort descending. Rows with an age over 50 are red.
  2. Click Age and choose Sort ascending. The first rows are not red.