@@ -6,24 +6,64 @@ A table is an arrangement of data with rows and columns. Each row consists of ce
66* a delimiter row separating the header from the data
77* zero or more data rows
88
9- ## Notes
9+ ## Basic Table
1010
11- * A leading and trailing pipe is recommended for clarity of reading
12- * Spaces between pipes and cell content are trimmed
13- * Block-level elements cannot be inserted in a table
11+ ::::{tab-set}
1412
15- ## GitHub Flavored Markdown (GFM) Table
16-
17- You can use the GFM table syntax to create a table:
18-
19- ```
13+ :::{tab-item} Output
2014| Country | Capital |
2115| ------- | --------------- |
2216| USA | Washington D.C. |
2317| Canada | Ottawa |
24- ```
18+ | Mexico | Mexico City |
19+ | Brazil | Brasília |
20+ | UK | London |
21+ :::
2522
23+ :::{tab-item} Markdown
24+ ``` markdown
2625| Country | Capital |
2726| ------- | --------------- |
2827| USA | Washington D.C. |
2928| Canada | Ottawa |
29+ | Mexico | Mexico City |
30+ | Brazil | Brasília |
31+ | UK | London |
32+ :::
33+
34+ ::::
35+
36+ :::{note}
37+
38+ * A leading and trailing pipe is recommended for clarity of reading
39+ * Spaces between pipes and cell content are trimmed
40+ * Block-level elements cannot be inserted in a table
41+
42+ :::
43+
44+
45+ ## Responsive Table
46+
47+ Every table is responsive by default. The table will automatically scroll horizontally when the content is wider than the viewport.
48+
49+ ::::{tab-set}
50+
51+ :::{tab-item} Output
52+ | Product Name | Price ($) | Stock | Category | Rating | Color | Weight (kg) | Warranty (months) |
53+ |--------------|-----------|--------|-----------|---------|----------|-------------|-------------------|
54+ | Laptop Pro | 1299.99 | 45 | Computer | 4.5 | Silver | 1.8 | 24 |
55+ | Smart Watch | 299.99 | 120 | Wearable | 4.2 | Black | 0.045 | 12 |
56+ | Desk Chair | 199.50 | 78 | Furniture | 4.8 | Gray | 12.5 | 36 |
57+ :::
58+
59+ :::{tab-item} Markdown
60+ ```markdown
61+ | Product Name | Price ($) | Stock | Category | Rating | Color | Weight (kg) | Warranty (months) |
62+ |--------------|-----------|--------|-----------|---------|----------|-------------|-------------------|
63+ | Laptop Pro | 1299.99 | 45 | Computer | 4.5 | Silver | 1.8 | 24 |
64+ | Smart Watch | 299.99 | 120 | Wearable | 4.2 | Black | 0.045 | 12 |
65+ | Desk Chair | 199.50 | 78 | Furniture | 4.8 | Gray | 12.5 | 36 |
66+ :::
67+ ```
68+
69+ ::::
0 commit comments