Skip to content

Table ​

Loading...

<flint-table-pagination> ​

Table Pagination: pagination controls for tabular data.

  • Tag: <flint-table-pagination>
  • Class: FlintTablePagination

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintTablePagination } from 'flint-ui';

Usage ​

html
<flint-table-pagination></flint-table-pagination>

Properties ​

PropertyAttributeTypeDefaultDescription
countcountnumber0Total number of rows.
pagepagenumber0Controlled current page (0-indexed).
rowsPerPagerows-per-pagenumber10Controlled rows per page.
rowsPerPageOptionsrows-per-page-optionsnumber[][5, 10, 25]Available rows-per-page options.
defaultPagedefault-pagenumber0Uncontrolled default page (applied on first render).
defaultRowsPerPagedefault-rows-per-pagenumber-1Uncontrolled default rows per page.
showFirstLastshow-first-lastbooleanfalseShow First/Last page buttons.
labelRowsPerPagelabel-rows-per-pagestring'Rows per page:'Label for the rows-per-page selector.

Events ​

EventDetailDescription
flint-pagination-page-change—Fired when the current page changes.
flint-pagination-rows-per-page-change—Fired when rows per page changes.

CSS Custom Properties ​

PropertyDefault
--flint-font-family—
--flint-text-color-muted—
--flint-border-color—
--flint-text-color—
--flint-hover-color—

<flint-table-sort-label> ​

  • Tag: <flint-table-sort-label>
  • Class: FlintTableSortLabel

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintTableSortLabel } from 'flint-ui';

Usage ​

html
<flint-table-sort-label></flint-table-sort-label>

Properties ​

PropertyAttributeTypeDefaultDescription
activeactivebooleanfalseWhether this column is currently sorted.
directiondirection'asc' | 'desc''asc'Sort direction when active.

Slots ​

NameDescription
(default)Default slot for content

<flint-table-container> ​

flint-table-container

  • Tag: <flint-table-container>
  • Class: FlintTableContainer

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintTableContainer } from 'flint-ui';

Usage ​

html
<flint-table-container></flint-table-container>

Properties ​

PropertyAttributeTypeDefaultDescription
shadowshadowbooleanfalseApplies a stronger box-shadow elevation.
stickyHeadersticky-headerbooleanfalseSticks the table header to the top on scroll.

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-table-container-bgvar(--flint-surface-background, white

<flint-table> ​

flint-table

  • Tag: <flint-table>
  • Class: FlintTable

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintTable } from 'flint-ui';

Usage ​

html
<flint-table></flint-table>

Properties ​

PropertyAttributeTypeDefaultDescription
sizesize'medium' | 'small''medium'Cell padding density.

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-table-striped-bgvar(--flint-surface-2
--flint-table-cell-padding-y16px
--flint-table-cell-padding-x16px
--flint-table-border-colorvar(--flint-border-color
--flint-table-header-bgtransparent
--flint-table-header-colorvar(--flint-text-color-muted
--flint-table-container-bgvar(--flint-surface-background, white
--flint-table-border-radiusvar(--flint-border-radius-lg, 8px
--flint-table-shadowvar(--flint-shadow-sm
--flint-table-shadow-elevatedvar(--flint-shadow-md
--flint-table-row-hover-bgvar(--flint-hover-color, rgba(0, 0, 0, 0.04
--flint-table-row-selected-bgvar(--flint-primary-color-light, rgba(59, 130, 246, 0.08
--flint-table-cell-padding-y-dense6px
--flint-table-cell-padding-x-dense16px

<flint-table-head> ​

flint-table-head

  • Tag: <flint-table-head>
  • Class: FlintTableHead

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintTableHead } from 'flint-ui';

Usage ​

html
<flint-table-head></flint-table-head>

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-table-header-bgtransparent
--flint-table-header-colorvar(--flint-text-color-muted

<flint-table-body> ​

flint-table-body

  • Tag: <flint-table-body>
  • Class: FlintTableBody

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintTableBody } from 'flint-ui';

Usage ​

html
<flint-table-body></flint-table-body>

Properties ​

PropertyAttributeTypeDefaultDescription
stripedstripedbooleanfalseEnables alternating row shading.

Slots ​

NameDescription
(default)Default slot for content

<flint-table-row> ​

flint-table-row

  • Tag: <flint-table-row>
  • Class: FlintTableRow

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintTableRow } from 'flint-ui';

Usage ​

html
<flint-table-row></flint-table-row>

Properties ​

PropertyAttributeTypeDefaultDescription
selectedselectedbooleanfalseHighlights the row as selected.
hoverhoverbooleanfalseForces hover highlight on the row.

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-table-row-hover-bgvar(--flint-hover-color, rgba(0, 0, 0, 0.04
--flint-table-row-selected-bgvar(--flint-primary-color-light, rgba(59, 130, 246, 0.08

<flint-table-cell> ​

flint-table-cell

  • Tag: <flint-table-cell>
  • Class: FlintTableCell

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintTableCell } from 'flint-ui';

Usage ​

html
<flint-table-cell></flint-table-cell>

Properties ​

PropertyAttributeTypeDefaultDescription
headerheaderbooleanfalseRenders the cell with header styling.
alignalign'left' | 'right' | 'center''left'Text alignment within the cell.
paddingpadding'normal' | 'checkbox' | 'none''normal'Padding preset for the cell.

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-table-cell-padding-y16px
--flint-table-cell-padding-x16px
--flint-table-cell-padding-y-dense6px
--flint-table-cell-padding-x-dense16px

flint-table-footer

  • Tag: <flint-table-footer>
  • Class: FlintTableFooter

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintTableFooter } from 'flint-ui';

Usage ​

html
<flint-table-footer></flint-table-footer>

Slots ​

NameDescription
(default)Default slot for content