Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Revenue
Platforms and marketplaces
Money management
Developer tools
Overview
Versioning
Changelog
Upgrade your API version
Upgrade your SDK version
Developer tools
SDKs
API
Testing
Workbench
Event Destinations
Workflows
Stripe CLI
Stripe Shell
Developers Dashboard
Agent toolkit
Build with LLMsStripe for Visual Studio CodeStripe health alertsFile uploads
Security and privacy
Security
Privacy
Extend Stripe
Stripe Apps
    Overview
    Get started
    Create an app
    How Stripe Apps work
    Sample apps
    Build an app
    Store secrets
    API authentication methods
    Authorization flows
    Server-side logic
    Listen to events
    Handle different modes
    Enable sandbox support
    App settings page
    Build a UI
    Onboarding
    Distribute your app
    Distribution options
    Upload your app
    Versions and releases
    Test your app
    Publish your app
    Promote your app
    Add deep links
    Create install links
    Assign roles in UI extensions
    Post-install actions
    App analytics
    Embedded components for Apps
    Embed third-party Stripe Apps
    Migrating to Stripe Apps
    Migrate or build an extension
    Migrate a plugin to Stripe Apps or Stripe Connect
    Reference
    App manifest
    CLI
    Extension SDK
    Permissions
    Viewports
    Design patterns
    Components
      Accordion
      Badge
      Banner
      BarChart
      Box
      Button
      ButtonGroup
      Checkbox
      Chip
      ContextView
      DateField
      Divider
      FocusView
      FormFieldGroup
      Icon
      Img
      Inline
      LineChart
      Link
      List
      Menu
      PropertyList
      Radio
      Select
      SettingsView
      SignInView
      Sparkline
      Spinner
      Switch
      Table
      Tabs
      Tasklist
      TextArea
      TextField
      Toast
      Tooltip
Stripe Connectors
Partners
Partner ecosystem
Partner certification
HomeDeveloper toolsStripe AppsComponents

Table component for Stripe Apps

Display a table using the Table component.

Copy page

To add the Table component to your app:

import {Table, TableBody, TableCell, TableFooter, TableHead, TableHeaderCell, TableRow} from '@stripe/ui-extension-sdk/ui';

The following shows a preview of a Table component with a header, several rows of data, and a footer:

Loading example...
<Box css={{ backgroundColor: 'surface', padding: 'medium', borderRadius: 'medium', }} > <Table> <TableHead> <TableRow> <TableHeaderCell>Charge type</TableHeaderCell> <TableHeaderCell>Amount</TableHeaderCell> </TableRow> </TableHead> <TableBody> <TableRow> <TableCell>Setup fee</TableCell> <TableCell>$95.00</TableCell> </TableRow> <TableRow> <TableCell>Maintenance fee</TableCell> <TableCell>$50.45</TableCell> </TableRow> <TableRow> <TableCell>Extra storage space (per GB)</TableCell> <TableCell>$5.95</TableCell> </TableRow> <TableRow> <TableCell>Premium features</TableCell> <TableCell>$109.00</TableCell> </TableRow> </TableBody> <TableFooter> <TableRow> <TableCell> <Inline css={{font: 'heading'}}>Total</Inline> </TableCell> <TableCell> <Inline css={{font: 'heading'}}>$260.40</Inline> </TableCell> </TableRow> </TableFooter> </Table> </Box>

Table props

PropertyType

children

Required

React.ReactNode

The contents of the component.

Sub-components

TableBody

The TableBody component contains the rows and cells in a table.

TableBody props

PropertyType

children

Required

React.ReactNode

The contents of the component.

TableCell

The TableCell component contains one unit of information in a table corresponding to a row and column.

TableCell props

PropertyType

children

Required

React.ReactNode

The contents of the component.

align

Optional

("center" | "left" | "right") | undefined

colSpan

Optional

number | undefined

maxWidth

Optional

("auto" | "maximized" | "minimized" | number) | undefined

minWidth

Optional

("auto" | "maximized" | "minimized" | number) | undefined

rowSpan

Optional

number | undefined

vAlign

Optional

("baseline" | "bottom" | "middle" | "top") | undefined

width

Optional

("auto" | "maximized" | "minimized" | number) | undefined

wrap

Optional

boolean | undefined

TableFooter

The TableFooter component summarizes or aggregates the columns of information contained in a table.

TableFooter props

PropertyType

children

Required

React.ReactNode

The contents of the component.

TableHead

The TableHead component describes the columns of information contained in a table.

TableHead props

PropertyType

children

Required

React.ReactNode

The contents of the component.

TableHeaderCell

The TableHeaderCell component describes one column of information in a table.

TableHeaderCell props

PropertyType

children

Required

React.ReactNode

The contents of the component.

align

Optional

("center" | "left" | "right") | undefined

colSpan

Optional

number | undefined

maxWidth

Optional

("auto" | "maximized" | "minimized" | number) | undefined

minWidth

Optional

("auto" | "maximized" | "minimized" | number) | undefined

rowSpan

Optional

number | undefined

vAlign

Optional

("baseline" | "bottom" | "middle" | "top") | undefined

width

Optional

("auto" | "maximized" | "minimized" | number) | undefined

wrap

Optional

boolean | undefined

TableRow

The TableRow component is an entry in a table composed of cells containing information for each column.

TableRow props

PropertyType

children

Required

React.ReactNode

The contents of the component.

See also

  • Design patterns to follow
  • Style your app
  • UI testing
Was this page helpful?
YesNo
Need help? Contact Support.
Join our early access program.
Check out our changelog.
Questions? Contact Sales.
LLM? Read llms.txt.
Powered by Markdoc