Codex Documentation Manager
Components
Csv table

Overview

The CsvTable component can render an external CSV file into a table, with optional headers.

Properties

file
required
String

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.

headers
optional
Boolean

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"/>
nameageposition
alice18engineer
bob19engineer
charlie20manager
Generated by Codex