string"a user friendly label for screen readers"
string"start"
"center"
"end"
"stretch"
"baseline"
string"div"
function() => {}function{(datum) => (
<Card key={datum.city} as="li">
<CardBody>
<Heading level={2} size="small" margin="none">
{datum.city}
</Heading>
</CardBody>
<CardFooter>{datum.state}</CardFooter>
</Card>
)}array
[
{
"date": "2020-05-28",
"amount": 88,
"percent": 20
},
{
"date": "2020-05-27",
"amount": 77,
"percent": 15
}
]
string"none"
"xxsmall"
"xsmall"
"small"
"medium"
"large"
"xlarge"
object
{
vertical: "...",
horizontal: "...",
top: "...",
bottom: "...",
left: "...",
right: "..."
}
function() => {}function(reorderedData) => {}string"none"
"xxsmall"
"xsmall"
"small"
"medium"
"large"
"xlarge"
"any CSS size"
object
{
vertical: "...",
horizontal: "...",
top: "...",
bottom: "...",
left: "...",
right: "...",
start: "...",
end: "..."
}
booleantrue
false
object{}The name of the member in the item object for a particular data item
that will end up containing the row and/or column span for the child
in the grid. This member should be an object of the form
{ rows:
string"size"
At its core, the Cards component is a regular <div> element. Thus, both DOM and React properties, methods, and events are accessible. To read up on all of the possible DOM attributes and types available for div elements, check out this MDN Web Documents page. To learn more about DOM events and methods, you can read more on the MDN Web Events documentation page.
Also, feel free to read about the types of React events available, or see how DOM attributes change in React. Working in tandem with Styled Components, you also have access to the as property.