Data List
Table-like compontent useful to organize and display data.
#
Importimport { DataList } from '@volue/wave-react';
#
Examples#
Basic#
Striped#
Bordered#
Customize columns ratioUse the ratio
property, to define the relative width of the label and value columns. The default ratio is 1:3.
#
AlignmentUse align
property to horizontally align the value, useful for numeric or similar data.
#
Emphasise valueSometimes the value itself is what matters, the label should only act as a supporting content.
Set emphasize
property to value
to de-emphasize labels and thus give values more emphasis.
#
API Reference#
DataListProp | Type | Default |
---|---|---|
css | StitchesCss | No default value |
striped | boolean | No default value |
bordered | boolean | No default value |
ratio | [number, number] | [1, 3] |
align | enum | No default value |
emphasize | enum | "label" |
#
DataList.RowProp | Type | Default |
---|---|---|
css | StitchesCss | No default value |
#
DataList.LabelProp | Type | Default |
---|---|---|
css | StitchesCss | No default value |
#
DataList.ValueProp | Type | Default |
---|---|---|
css | StitchesCss | No default value |