EEnterUI
DocsComponentsThemesDonation
Get Started
      • DataTable
      • DataGrid
      • DataView
EnterUIDocsData AnalyticsTables and DataData ViewsDataTable
Data AnalyticsUpdated 6 May 2026

DataTable

A small data table wrapper for simple product datasets.

DataTable defines how EnterUI handles a small data table wrapper for simple product datasets, including default structure, accessible states, and token-driven styling.

#Default usage

Data table

Columns can map directly to object keys.

ComponentScopeStatus
DialogOverlayReady
DataTableDataPreview
AppShellLayoutReady
Code
<DataTable
  dense
  columns={[
    { id: "component", header: "Component", accessor: "component" },
    { id: "scope", header: "Scope", accessor: "scope" },
    { id: "status", header: "Status", accessor: "status" },
  ]}
  data={[
    { component: "Dialog", scope: "Overlay", status: "Ready" },
    { component: "DataTable", scope: "Data", status: "Preview" },
    { component: "AppShell", scope: "Layout", status: "Ready" },
  ]}
/>

#Import

Code
import { DataTable } from "@froggdesign/enter-ui-react";

#Patterns

Empty state

Use emptyContent for calm zero-result states.

Name

No records found

Try adjusting filters or create a new item.

#Accessibility

DataTable renders semantic table primitives. Sorting controls are buttons when a sortable column and sort handler are provided.

#API

  • columns: column definitions with id, header, accessor, optional align, and optional sortable.
  • data: array of row objects.
  • dense, emptyContent, sort, and onSortChange are supported.

#Styling

Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousTableEmptyState
NextDataGrid

On this page

  1. Default usage
  2. Import
  3. Patterns
  4. Accessibility
  5. API
  6. Styling