SDAIA
SDAIA LogoSDAIA Logo
ComponentsTable
IntroductionInstallationFAQBrands
ColorsTypographySpacingRadiusGrid layoutsAll Tokens
All Components
AccordionActivityArea ChartAudio PlayerAvatarAvatarGroupCarousel ImageChartChipCode SnippetColumn ChartContext MenuDigital StampDividerDonut ChartDraggable ListDropdownEmpty StateFiltrationFooterImage ViewerLine ChartListMedia GalleryMenuMetricNav BarNav HeaderNumberPDF ViewerPie ChartPopoverProgress CircleQuoteRadial StepperScatterSecond Nav HeaderSlideout MenuStructured ListTableTable of ContentTree ViewVertical TabsVideo Player
BreadcrumbButtonButton MenuButton SplitContent SwitcherDate PickerFloating ButtonHorizontal TabsLinkModalPaginationRadio ButtonSwitchTag
AutocompleteCheckboxFile UploadNumber InputRange SliderRich Text EditorSelectSignatureSliderText AreaText Input
AlertsBadgeCardFeedbackFeedback OverviewHelp IconLoading IndicatorNotification BannerNotification PopupNotificationsProgress BarRatingRating OverviewSkeletonSkeleton/AvatarsTooltip
Sdaia Logo Animation
Sdaia Touch ButtonsSdaia Touch Switch

Table

Data table for displaying structured information in rows and columns. Supports divider styles, mobile layout, and RTL.

Loading preview…
1<Table
2 title="Active Datasets"
3 description="48 datasets · 3 selected"
4 headerActions={<><Button variant="neutral" size="sm">Filter</Button><Button variant="primary" size="sm">New dataset</Button></>}
5 columns={columns}

Installation

npx sdaia-ui@latest add table

Usage

import { Table } from "@/components/ui/table"
<Table />

Examples

Default

Basic table with no dividers.

Loading preview…
1<Table title="Team members" description="..." headerActions={<><Button variant="secondary-outline">Filter</Button><Button variant="primary">Add member</Button></>} showMoreIcon columns={columns} rows={rows} sortKey={sortKey} sortDirection={sortDirection} onSort={setSort} showPagination page={page} totalPages={5} onPageChange={setPage} />

Horizontal Dividers

Table with horizontal dividers between rows.

Loading preview…
1<Table title="Active projects" columns={columns} rows={rows} divider="horizontal" />

Vertical Dividers

Table with vertical dividers between columns.

Loading preview…
1<Table title="API health" columns={columns} rows={rows} divider="vertical" />

Full Dividers

Table with both horizontal and vertical dividers.

Loading preview…
1<Table columns={columns} rows={rows} divider="both" />

Mobile

Table layout optimised for mobile screens.

Loading preview…
1<Table mobile title="Team" description="..." columns={columns} rows={rows} divider="horizontal" />

API Reference

TableProps

Props for the Table component.

Prop

Type

Default

Required

title

ReactNode

-

optional

description

ReactNode

-

optional

headerActions

ReactNode

-

optional

showMoreIcon

boolean

-

optional

onMoreClick

() => void

-

optional

hideHeader

boolean

false

optional

columns

TableColumn[]

-

required

rows

TableRowData[]

-

required

divider

'none' | 'horizontal' | 'vertical' | 'both'

'none'

optional

sortKey

string

-

optional

sortDirection

'asc' | 'desc'

-

optional

onSort

(key: string, direction: TableSortDirection) => void

-

optional

showPagination

boolean

false

optional

page

number

1

optional

totalPages

number

1

optional

onPageChange

(page: number) => void

-

optional

mobile

boolean

false

optional
Structured List
Table of Content
On this page
Active Datasets48 datasets · 3 selected
DATASETRECORDSLAST UPDATEDOWNERSTATUS
Population Census 2024
2.4M
Apr 18 2026
Sarah Ahmed
Active
Healthcare Claims Q1
847K
Apr 15 2026
Mohammed Al-Q
Active
Tourism Visitors 2024
1.1M
Apr 09 2026
Noura Al-D
Archived
Showing 3 of 48 datasets
Team membersManage members, assigned roles and working locations.
StatusLocation
Candice Wucandice@sdaia.gov.sa
Frontend EngineerEngineering
Away
Dammam
Demi Wilkinsondemi@sdaia.gov.sa
Backend EngineerEngineering
Active
Riyadh
Lana Steinerlana@sdaia.gov.sa
Product DesignerDesign
Active
Riyadh
Phoenix Bakerphoenix@sdaia.gov.sa
Product ManagerProduct
Active
Jeddah
Page 1 of 5
Active projectsRow dividers visually separate each entry.
ProjectOwnerProgress
Platform LaunchQ2 Roadmap
Lana Steiner
72%
Mobile RedesignQ3 Roadmap
Phoenix Baker
40%
API v2Q2 Roadmap
Candice Wu
95%
API healthColumn dividers make numeric comparisons easier to scan.
MetricLast 7 daysPreviousΔ
Requests
12,480
11,210
+11.3%
Errors
312
402
-22.4%
Avg. latency
184ms
201ms
-8.5%
NameRoleStatus
Ahmed
Editor
Active
Sara
Author
Active
Khalid
Viewer
Inactive
TeamCompact layout tuned for small screens.
NameStatus
Lana SteinerDesign
Active
Phoenix BakerProduct
Active
Candice WuEng.
Away