Overview
The CsvTable
component can render an external CSV file into a table, with
optional headers.
Properties
A path relative to the project root to a CSV file to render. This file needs to be present during build, but does not get moved into the final site.
If true the first row of the file is parsed as a header row and a table header is generated for it.
Default value:true
Example
<CsvTable file="../test/fixture/other/test_data.csv"/>
name | age | position |
alice | 18 | engineer |
bob | 19 | engineer |
charlie | 20 | manager |