A common container component.
The basic Card
usage.
You can apply a fancy hover animation with the hoverable
prop.
You can apply a fancy hover animation with the bordered
prop.
You can apply shadow with the shadow
prop.
Show different states with colors.
default
primary
secondary
success
warning
error
info
dark
lite
You can use the Card.Footer
component to add actions, details or another information to the Card
.
More creative and fun with amazing features for React.
More creative and fun with amazing features for React.
You can use the Image
component to add an image to the Card
.
Show different types of content using Divider
.
React components implement a render()
method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by render()
via this.props
.
Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
hoverable | add effect on hover | boolean | - | false |
shadow | show shadow | boolean | - | false |
type | card type | CardType | - | default |
... | native props | HTMLAttributes | 'id', className', ... | - |
Card.Body
]Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
... | native props | HTMLAttributes | 'id', className', ... | - |
Card.Actions
]Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
disableAutoMargin | cancel automatic margin value | boolean | - | false |
... | native props | HTMLAttributes | 'id', className', ... | - |
type CardType =
| 'default'
| 'primary'
| 'secondary'
| 'success'
| 'warning'
| 'error'
| 'info'
| 'dark'
| 'lite'
Previous
Capacity
Next
Checkbox