Examples › Basic table properties
The DataTable component passes most properties of the underlying Mantine Table component through, and implements a number of additional ones. Try customizing some of them interactively below:
Row borders, withRowBordersColumn borders, withColumnBordersStripedHighlight on hover, highlightOnHoverTable border, withTableBorderNo header, noHeadershadowhorizontalSpacingverticalSpacingfz, fontSizeborderRadiusverticalAlignNo records
Things to keep in mind
- row borders are shown by default; set
withRowBorders={false}to hide them; borderRadiusis meant to round the corners of the outer table border, so it can only be set together withwithTableBorder(TypeScript will complain otherwise);horizontalSpacing,verticalSpacing,fz,borderRadiusandshadowaccept a key of the corresponding Mantine theme property (xs,sm,md,lgorxl) as well as any valid CSS value;verticalAligncontrols the vertical alignment of row cells and defaults tocenter; its effect is only visible when some cells span multiple lines (such as the Mission statement column above).
Other table properties
Since Mantine DataTable passes unknown properties down to the Mantine Table component, you can also use other Table properties, such as tabularNums (which applies font-variant-numeric: tabular-nums, so that numbers in different rows line up nicely).
Other examples cover related properties in more detail:
- overriding the default styles — text, background, border, striped and hover colors, class names and styles;
- scrollable vs. auto-height —
height,minHeightandmaxHeight; - disabling text selection —
textSelectionDisabled.
Head over to the next example to discover more features.












