Skip to content
Components
@app-studio/components

Table

Renders a tabular display for presenting structured data with customizable styles.

View component source

Import

ts
import { Table } from '@app-studio/components';

New to the library? Complete installation and provider setup first.

Interactive examples

Try the component, then open Code to copy the complete example.

INTERACTIVE EXAMPLE

Loading preview…

Props

Required props are marked below. A dash indicates an unspecified default. Design system configuration can override implementation defaults.

Scroll horizontally to see every column.

Table
PropTypeDefaultDescription
HeadReact.FC<any>—See the type and source declaration for this property.Source
BodyReact.FC<any>—See the type and source declaration for this property.Source
RowReact.FC<any>—See the type and source declaration for this property.Source
CellReact.FC<any>—See the type and source declaration for this property.Source
FooterReact.FC<any>—See the type and source declaration for this property.Source
CaptionReact.FC<any>—See the type and source declaration for this property.Source
TableContainerReact.FC<any>—See the type and source declaration for this property.Source
children
View typestring | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null
—Content rendered inside the component.Source
viewsTableViewStyles—Style overrides for the named internal parts.Source
onClick((event: React.MouseEvent<HTMLElement>) => void)—Called when the user activates the component.Source

Table.Cell

Scroll horizontally to see every column.

Table.Cell
PropTypeDefaultDescription
isFirstColumnboolean—See the type and source declaration for this property.Source

Table.Template

Scroll horizontally to see every column.

Table.Template
PropTypeDefaultDescription
data Requiredany[]—Data to render.Source
columns RequiredColumn[]—Column definitions used to render the data.Source
footerFooterCell[]—See the type and source declaration for this property.Source
caption
View typestring | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null
—See the type and source declaration for this property.Source
viewsTableViewStyles—Style overrides for the named internal parts.Source

For shared layout, color, and responsive properties, read Styling & composition and Responsive layouts. Additional native element attributes depend on the target platform.

Usage guidance

  • Give controls a visible label or an accessible name, and verify keyboard interaction. See Accessibility.
  • For controlled inputs, update the value from the callback shown in the props table. Keep application state in your component or form library.
  • These previews run in the browser. Check React Native setup for platform requirements and differences.
Browse documentation source