Table

Designer doc
This component has low-level abstraction similar to built-in table elements. For a higher-level abstraction and rendering based on column, please check TableData component.

Example

Basic Usage
In example below, you can pass built-in td props like width to TableCell component. There are also helper props align accepting css text-align property, and boolean ellipsis prop.
Note that TableCell is used to render td or th. It will render td under TableBody, and renders th under TableHead.
IDOriginDescriptionAuthor
0North CristianhavenProvident dolor officiis. Aspernatur cum minima. Ratione commodi laudantium et harum. Incidunt reprehenderit aut quas ab eos dolor nobis saepe voluptas. Corporis rerum mollitia culpa ut iusto expedita unde aut et. Eos est aut impedit ducimus odit.Quigley
1SchuppestadAnimi minima cupiditate. Sint corporis dolores qui aspernatur aut facilis soluta. Rem quibusdam odit autem est. Aut voluptatem eum laborum laudantium ad itaque eius. Non voluptatem temporibus optio sapiente. Hic eos neque et et non ad.Jenkins
2WardchesterEa et occaecati neque a quis maiores atque hic. Cupiditate vel est atque. Suscipit voluptates laudantium aspernatur et sunt. Natus corrupti consequatur harum eum. Est et veritatis quia et quos ad qui suscipit in.Erdman
3New ShanaLabore aut quia velit id necessitatibus error illum itaque. Quibusdam aut consectetur alias quisquam. Error esse voluptatum. Nostrum debitis enim nihil quis voluptas sint. Id cum eum.Purdy
View code
Fixed Header
By default, table header is sticky on top relative to TableContainer. So, you just need to specify the max-height of TableContainer so that it scrolls.
NameEmail
Dr. Joanie OrnMyriam_Russel79@yahoo.com
Orie JerdeOdie80@gmail.com
Johnson MannHeber.Moen47@yahoo.com
Keyshawn Thompson IVHarry94@yahoo.com
Maegan ChristiansenAdelle15@hotmail.com
Dedrick HamillMuhammad16@yahoo.com
Jules MonahanAntonio_Boehm36@gmail.com
King RobelThurman.Turner@hotmail.com
Jordy BorerAidan_Walter@hotmail.com
Destany MurazikPatsy89@gmail.com
Shad CarterShyann.Hayes@gmail.com
Henriette HuelTaurean_Smitham72@gmail.com
Dorothy HoegerFreeman.Bartoletti73@yahoo.com
Mrs. Federico CartwrightLew58@hotmail.com
Sandra SchmittFrancesca10@yahoo.com
Kaleb CummingsAhmed96@hotmail.com
Jordan ConroyBrook.Wintheiser@yahoo.com
Liam StammGail45@hotmail.com
Emil HaagCarroll67@hotmail.com
Louvenia MoenIan74@yahoo.com
Lavada HayesEddie98@hotmail.com
Sydnie Ledner Jr.Patricia_Upton@hotmail.com
Eriberto CrooksZackery28@gmail.com
Ms. Alvera KesslerKeyon_Reichel@yahoo.com
Ms. Macey KleinAmara.Ziemann75@yahoo.com
Ms. Michel CartwrightStuart85@gmail.com
Joshua RennerLora.Wilkinson@gmail.com
Floy ZboncakNico.Satterfield@yahoo.com
Dr. Major MorarJoshua30@yahoo.com
Jaren DeckowShaina47@hotmail.com
View code
How this works is header automatically set sticky prop to top. You can remove this behaviour by specifying sticky={null}. Learn more about sticky prop in the following section.
Fixed Column and Header
For displaying large amounts of data with long columns, you can specify TableCell’s sticky prop to keep a certain column or row visible.
This sticky props accept:
  • StickyPositions (top, bottom, left, right). This will set the sticky offset 0.
  • Array<StickyPositions>. For example, header column on the top right you can specify ['top', 'right'].
  • { [StickyPositions]: number }. To specify the offset, you should pass an object like { right: 120 }.
IDNameEmailCompanyCodeDepartment
1JimmyConstance_Bins@yahoo.comDouglas, Steuber and LynchLBMusic
2SashaAlberta_Koss49@hotmail.comHeaney - KleinFMHealth
3TrevaRaina.Kerluke@hotmail.comPurdy, Morar and AnkundingKPSports
4ArloCarlo.Johnston@yahoo.comBayer - RoobETGrocery
5ShainaRuthie_Kessler@yahoo.comWilderman LLCLVToys
6LorenzaIssac_Hane@gmail.comLuettgen, McGlynn and KuhnBIAutomotive
7EmanuelOma_Breitenberg43@gmail.comBins - MacGyverFIGames
8KaseyZoila_Skiles51@yahoo.comHessel, Williamson and LangworthDMHome
9AnissaChasity_Haag19@hotmail.comKihn, Jacobson and EbertIOGrocery
10DanikaHaskell_Bartell92@yahoo.comBeer - ProhaskaDKKids
11CoralieCarlos_Friesen@gmail.comMarks LLCSOIndustrial
12HiramLysanne.Schmeler79@hotmail.comOkuneva - BlockIOJewelery
13RosalindZachery_Bahringer12@gmail.comBlick - TreutelERMovies
14AnastasiaBrett.Balistreri@yahoo.comHane - ColeYTMusic
15BusterSigmund.Bechtelar@gmail.comQuitzon IncJEBooks
View code

Accessibility

This component uses html table elements, so there’s no need to specify additional roles and aria attributes. Regarding keyboard interactions, each row is focusable. ArrowDown and ArrowUp can be used to navigate through each row.

References

API

Table
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
TableBody
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
TableCell
Prop nameTypeDefaultDescription
alignTextAlignleft
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
ellipsisboolean
stickySticky
TableContainer
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
TableHead
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
TableRow
Prop nameTypeDefaultDescription
asvoid | WebTarget
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
forwardedAsvoid | WebTarget
themeDefaultTheme
    Example
    Example
    Basic Usage
    Basic Usage
    Fixed Header
    Fixed Header
    Fixed Column and Header
    Fixed Column and Header
    Accessibility
    Accessibility
    References
    References
    API
    API
    Table
    Table
    TableBody
    TableBody
    TableCell
    TableCell
    TableContainer
    TableContainer
    TableHead
    TableHead
    TableRow
    TableRow
Coral is a thoroughly developed design system widely adopted by developers and designers for creating beautiful and user-friendly Sea internal products.

Copyright © 2018-2025 Sea Labs