Skip to content

Properties

<Table>

TypeDefault valueDescription
mode"accordion"
"navigation"
nullDefines how the Table should look. Use accordion for an accordion-like table. Use navigation for a navigation table.
accordionChevronPlacement"left"
"right"
"left"Defines where the chevron will be placed, should only be used together with mode="accordion".
borderbooleanfalseUse true to show borders between table data cells.
outlinebooleanfalseUse true to show an outline border around the table.
stickyboolean
"css-position"
falseUse true to enable a sticky Table header. Or use 'css-position' to enable the CSS based scroll behavior.
stickyOffsetstring
number
0Defines the offset (top) in rem from where the header should start to stick. You may define your app header height here, if you have a sticky header on your page.
size"large"
"small"
"medium"
"large"Spacing size inside the table header and data.
fixedbooleannullIf set to true, the table will behave with a fixed table layout, using: table-layout: fixed;. Use e.g. CSS width: 40% on a table column to define the width.
childrenReact.ReactNodeREQUIREDThe content of the component.
classNamestringundefinedCustom className on the component root.
skeletonbooleanundefinedIf set to true, an overlaying skeleton with animation will be shown.
Spacestring
object
Spacing properties like top or bottom are supported.

Table Row <Tr>

TypeDefault valueDescription
variant"even"
"odd"
undefinedOverride the automatic variant of the current row. The next row one will continue with the opposite.
noWrapbooleanfalseIf set to true, the inherited header text will not wrap to new lines.
verticalAlign"top"
"middle"
"bottom"
undefinedVertical alignment of all cell content in the row.
expandedbooleanfalseUse true to render the <Tr> initially as expanded.
disabledbooleanfalseUse true to disable the <Tr> to be accessible as an interactive element.
noAnimationbooleanfalseUse true to disable the expand/collapse animation.
keepInDOMbooleanfalseWhen true, keeps the accordion content in the DOM when closed. Defaults to false.
highlightbooleanfalseIf set to true, all <Td> and <Th> cells in the row receive a highlighted background.
childrenReact.ReactNodeREQUIREDThe content of the component.

Table Header <Th>

TypeDefault valueDescription
variant"emphasis"
"subtle"
"emphasis"Defines the visual style of the table header. Use subtle for a lighter appearance with reduced font-weight, smaller font-size, and muted text color.
sortablebooleanfalseDefines the table header as sortable if set to true (ascending).
activebooleanfalseDefines the sortable column as the current active (ascending).
reversedbooleanfalseDefines the sortable column as in reversed order (descending).
noWrapbooleanfalseIf set to true, the header text will not wrap to new lines.
highlightbooleanfalseIf set to true, the header cell and all <Td> cells in the same column receive a highlighted background. Also inherited from the parent <Tr> when it has highlight.
childrenReact.ReactNodeundefinedThe content of the component.

Table Data <Td>

TypeDefault valueDescription
noSpacingbooleanfalseIf set to true, no padding will be added.
spacing"horizontal"undefinedSet to horizontal for padding on left and right side.
verticalAlign"top"
"middle"
"bottom"
undefinedVertical alignment of the cell content.
highlightbooleanfalseIf set to true, the cell receives a highlighted background. Automatically set when the parent <Tr> has highlight, or when the corresponding <Th> in the same column has highlight.
selectedbooleanundefinedWhen true, the cell is styled as selected (highlighted background and selected icon/border). Requires onClick to take effect, since the selected styling targets the cell button. When provided (either true or false), the cell button is announced as a toggle button by screen readers via aria-pressed. Use setSelected from the onClick callback to toggle the state.
childrenReact.ReactNodeundefinedThe content of the component.

Table Translations

More info about translations can be found in the general localization and Eufemia Forms localization docs.

Keynb-NOen-GBsv-SEda-DK
Table.accordionToggleButtonSRVis mer innholdShow more contentVisa mer innehållVis mere indhold
Table.accordionMoreContentSRMer innhold i neste radMore content in the next rowMer innehåll i nästa radMere indhold i næste række
Table.navigationButtonSRNaviger til mer innholdNavigate to more contentNavigera till mer innehållNaviger til mere indhold