When a string is supplied, it indicates the property in a data item object to use to get the primary content. If a function is supplied, it will be called with the current data item object and should return a React element that will be rendered as the primary content.
Custom label to be used by screen readers. When provided, an aria-label will be added to the element.
"a user friendly label for screen readers"How to align along the cross axis when contained in a Box or along the column axis when contained in a Grid.
"start""center""end""stretch"Item background. An array value indicates that items should have different backgrounds, modulo the array index.
"light-2"["white", "light-2"]Function that will be called when each data item is rendered.
It will be passed three arguments, the individual data item, its index,
and an object indicating the state of the item, if any. It
should return a react element.
For example:
children={(item, index, { active }) => <Box ...>{...}</Box>}
(datum, index, { active }) => {...}Item specific background, border, and pad, keyed by data index. For example: { 27: { background: ..., border: ..., pad: ... }}, where the background, border, and pad accept the same values as the same named properties on List.
The amount of margin around the component. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side.
"xsmall""small""medium""large""xlarge"{
"vertical": "...",
"horizontal": "...",
"top": "...",
"bottom": "...",
"left": "...",
"right": "..."
}When supplied, this function will be called with an event object that include a 'item' property containing the data value associated with the clicked item and an 'index' property containing the index in 'data' of the clicked item. You should not include interactive elements, like Anchor or Button inside 'primaryKey' or 'secondaryKey' as that can cause confusion with overlapping interactive elements.
({ datum, index }) => {...}Use this to indicate that 'data' doesn't contain all that it could. It will be called when all of the data items have been rendered. This might be used when the total number of items that could be retrieved is more than you'd want to load into the browser. 'onMore' allows you to lazily fetch more from the server only when needed.
() => {...}When a string is supplied, it indicates the property in a data item object to use to get the secondary content. If a function is supplied, it will be called with the current data item object and should return a React element that will be rendered as the secondary content.
{"color": "active", "opacity": "medium"}{"dark": "white", "light": "black"}