The CategoriesList component helps you to simply create a beautiful list of items.
The below codes are editable and you can modify them the way you want directly from your browser, please use the green button or the ctrl + s to save the changes.
1// Material Dashboard 2 PRO React Examples2import CategoriesList from"examples/Lists/CategoriesList";34// Material Dashboard 2 PRO React Components5import MDTypography from"components/MDTypography";67<CategoriesList8title="categories"9categories={[10{11 color:"dark",12 icon:"devices_other",13 name:"Devices",14 description:(15<>16250in stock,{" "}17<MDTypographyvariant="caption"color="text"fontWeight="medium">18346+ sold
19</MDTypography>20</>21),22 route:"/",23},24{25 color:"dark",26 icon:"settings",27 name:"Tickets",28 description:(29<>30123 closed,{" "}31<MDTypographyvariant="caption"color="text"fontWeight="medium">3215 open
33</MDTypography>34</>35),36 route:"/",37},38{39 color:"dark",40 icon:"info",41 name:"Error logs",42 description:(43<>441 is active,{" "}45<MDTypographyvariant="caption"color="text"fontWeight="medium">4640 closed
47</MDTypography>48</>49),50 route:"/",51},52]}53/>
Props Information
Name
Type
Default
Description
title*
string
Used to set the CategoriesList title, its a required prop.
categories*
array
Used to set the CategoriesList items, it should be an array of objects and the objects should contain the following keys: `color`, `icon`, `name`, `description` and `route`. Its a required prop.