Skip to content

Table ​

Loading...

<flint-table-pagination> ​

Table Pagination: pagination controls for tabular data.

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

Import ​

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

Usage ​

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

Properties ​

PropertyAttributeTypeDefaultDescription
countcountnumber0Total number of rows.
pagepagenumber0Controlled current page (0-indexed). Page 0 is the first page.
rowsPerPagerowsPerPagenumber10Controlled rows per page.
rowsPerPageOptionsrowsPerPageOptionsnumber[][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 | undefined—Label for the rows-per-page selector. Defaults to localized "Rows per page:".

Events ​

EventDetailDescription
flint-pagination-page-change&#123; page: number &#125;Fired when the current page changes. detail: &#123; page: number &#125;
flint-pagination-rows-per-page-change&#123; rowsPerPage: number &#125;Fired when rows per page changes. detail: &#123; rowsPerPage: number &#125;

CSS Parts ​

NameDescription
baseThe component's base wrapper element.
selectThe select element.
spacerThe spacer element.

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 '@getufy/flint-ui'; // auto-registers all
// or
import { FlintTableSortLabel } from '@getufy/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.

CSS Parts ​

NameDescription
iconThe icon container.

<flint-table-container> ​

Scrollable container that wraps a <flint-table> to provide overflow handling, optional elevation shadow, and sticky header support.

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

Import ​

ts
import '@getufy/flint-ui'; // auto-registers all
// or
import { FlintTableContainer } from '@getufy/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 accepts a &lt;flint-table&gt; element.

CSS Custom Properties ​

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

<flint-table> ​

The main table element. Use inside a <flint-table-container> for scrolling and sticky header support, or standalone for simple layouts.

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

Import ​

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

Usage ​

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

Properties ​

PropertyAttributeTypeDefaultDescription
sizesize'md'|'sm''md'Cell padding density.

Slots ​

NameDescription
(default)Accepts &lt;flint-table-head&gt;, &lt;flint-table-body&gt;, and &lt;flint-table-footer&gt;.

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
--flint-table-border-radiusvar(--flint-border-radius-lg
--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> ​

Groups header rows at the top of a <flint-table>. Rendered with a subtle bottom border and bold text styling by default.

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

Import ​

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

Usage ​

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

Slots ​

NameDescription
(default)Accepts one or more &lt;flint-table-row&gt; elements containing header cells.

CSS Custom Properties ​

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

<flint-table-body> ​

Groups body rows in a <flint-table>. Supports alternating row shading via the striped attribute.

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

Import ​

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

Usage ​

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

Properties ​

PropertyAttributeTypeDefaultDescription
stripedstripedbooleanfalseEnables alternating row background shading.

Slots ​

NameDescription
(default)Accepts one or more &lt;flint-table-row&gt; elements.

<flint-table-row> ​

A single row within a <flint-table-head>, <flint-table-body>, or <flint-table-footer>. Supports selected and hover highlight states.

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

Import ​

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

Usage ​

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

Properties ​

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

Slots ​

NameDescription
(default)Accepts one or more &lt;flint-table-cell&gt; elements.

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> ​

A single cell within a <flint-table-row>. Can render as a data cell or a header cell via the header attribute. Supports text alignment and padding presets.

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

Import ​

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

Usage ​

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

Properties ​

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

Slots ​

NameDescription
(default)Cell content (text, icons, controls, etc.).

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

Footer section of a <flint-table>, typically used for summary rows, pagination controls, or aggregate data.

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

Import ​

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

Usage ​

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

Slots ​

NameDescription
(default)Accepts one or more &lt;flint-table-row&gt; elements or arbitrary footer content.