Skip to content

Table

Structured data display in rows and columns. Semantic HTML table with Cookest styling.

$cookest-ui add table

Recipe Library

Use Table to display a sortable recipe collection.

Your Cookest recipe collection
RecipeCuisineCook TimeServingsRating
Pasta CarbonaraItalian25 min44.9
Risotto MilaneseItalian40 min24.8
Chicken Tikka MasalaIndian50 min64.7
Pad ThaiThai30 min24.6
Beef TacosMexican20 min84.5

Ingredient Nutrition

Use Table with a footer for totals — great for nutritional breakdowns.

IngredientQuantityCaloriesProtein
Guanciale200g700 kcal18g
Spaghetti400g1408 kcal50g
Egg Yolks4220 kcal10g
Pecorino Romano80g310 kcal22g
Total (4 servings)2,638 kcal100g
PropTypeDefaultDescription
TableCaptionstringAn accessible caption for the table (displayed below).
TableHeaderReactNodeThe thead section containing TableHead cells.
TableBodyReactNodeThe tbody section containing TableRow elements.
TableFooterReactNodeOptional tfoot section, typically for totals.
TableRowReactNodeA single row. Receives hover styling automatically.
TableHeadReactNodeA th cell with bold styling.
TableCellReactNodeA td cell.