Skip to content

Table API

API reference docs for the React Table component. Learn about the props, CSS, and other APIs of this exported module.

Demos

For examples and details on the usage of this React component, visit the component demo pages:

Import

import Table from '@mui/joy/Table';
// or
import { Table } from '@mui/joy';
Learn about the difference by reading this guide on minimizing bundle size.

Props

borderAxis

children

color

component

hoverRow

noWrap

size

slotProps

slots

stickyFooter

stickyHeader

stripe

sx

variant

The ref is forwarded to the root element.

Theme default props

You can use JoyTable to change the default props of this component with the theme.


Slots

To learn how to customize the slot, check out the Overriding component structure guide.

root

CSS classes

These class names are useful for styling with CSS. They are applied to the root slot when specific states are triggered.

.MuiTable-borderAxisBoth

.MuiTable-borderAxisBothBetween

.MuiTable-borderAxisNone

.MuiTable-borderAxisX

.MuiTable-borderAxisXBetween

.MuiTable-borderAxisY

.MuiTable-borderAxisYBetween

.MuiTable-colorContext

.MuiTable-colorDanger

.MuiTable-colorNeutral

.MuiTable-colorPrimary

.MuiTable-colorSuccess

.MuiTable-colorWarning

.MuiTable-hoverRow

.MuiTable-noWrap

.MuiTable-sizeLg

.MuiTable-sizeMd

.MuiTable-sizeSm

.MuiTable-stickyFooter

.MuiTable-stickyHeader

.MuiTable-variantOutlined

.MuiTable-variantPlain

.MuiTable-variantSoft

.MuiTable-variantSolid