Table

The Table organizes and presents data in a structured table format.

default table

NameAgeGenderOccupation
Alice30FemaleProgrammer
Bob35MaleEngineer
Charlie25MaleDesigner
Diana28FemaleDoctor

Table with caption

Table with caption
NameAgeGenderOccupation
Alice30FemaleProgrammer
Bob35MaleEngineer
Charlie25MaleDesigner
Diana28FemaleDoctor

Props

Explore the available props for the Table component

PropTypeDefaultDescription
childrennode-Child components and content to be placed within it.
stylestring-Any CSS className to style the Table component.
variantnumber-Variant of the table

Explore the available props for the TableHead component

PropTypeDefaultDescription
childrennode-Child components and content to be placed within it.
stylestring-Any CSS className to style the TableHead component.
variantnumber-Variant of the table

Explore the available props for the TableBody component

PropTypeDefaultDescription
childrennode-Child components and content to be placed within it.
stylestring-Any CSS className to style the TableBody component.
variantnumber-Variant of the table

Explore the available props for the TableFooter component

PropTypeDefaultDescription
childrennode-Child components and content to be placed within it.
stylestring-Any CSS className to style the TableFooter component.
variantnumber-Variant of the table

Explore the available props for the TableCaption component

PropTypeDefaultDescription
positionstringtopWhere to place the TableCaption - "top" or "bottom".
childrennode-Child components and content to be placed within it.
stylestring-Any CSS className to style the TableCaption component.
variantnumber-Variant of the table

Explore the available props for the TableRow component

PropTypeDefaultDescription
childrennode-Child components and content to be placed within it.
stylestring-Any CSS className to style the TableRow component.
variantnumber-Variant of the table

Explore the available props for the TableCell component

PropTypeDefaultDescription
headerboolean-Is this heading?
childrennode-Child components and content to be placed within it.
stylestring-Any CSS className to style the TableCell component.
thStylestring-Any CSS className to style the TableCell component if the header is true.
tdStylestring-Any CSS className to style the TableCell component if the header is false.
variantnumber-Variant of the TableCell