Table
Title
Display a title for your Table with the title
prop. You
can adjust the appearance (titleAppearance
) and the rendered HTML element
(titleAs
).
Use the hideTitle
prop to hide the title visually, while maintaining
accessibility.
Fruits | Vegetables | Grains | Dairy | Protein |
---|---|---|---|---|
Pomello | Bok Choi | Chia | Pule | Crickets |
Starfruit | Romanesco | Sorghum | Casu marzu | Barnacles |
Durian | Ramps | Teff | Vieux Lille | Inca nuts |
Persimmon | Fiddleheads | Quinoa | Milbenkase | Spirulina |
Fruits | Vegetables | Grains | Dairy | Protein |
---|---|---|---|---|
Pomello | Bok Choi | Chia | Pule | Crickets |
Starfruit | Romanesco | Sorghum | Casu marzu | Barnacles |
Durian | Ramps | Teff | Vieux Lille | Inca nuts |
Persimmon | Fiddleheads | Quinoa | Milbenkase | Spirulina |
<Grid alignItems="end" breakpoints={['57em']}> <GridItem span={[12, 6]} marginBottom={['lg', 0]}> <Table title="Foods of the World" data={data} rowKey="Fruits"/> </GridItem> <GridItem span={[12, 6]}> <Table title="Foods of the World" titleAppearance="h2" titleAs="h3" data={data} rowKey="Fruits"/> </GridItem> </Grid>