38 lines
600 B
Markdown
38 lines
600 B
Markdown
|
`Card` (component)
|
||
|
==================
|
||
|
|
||
|
A basic card component with a header. The header can contain a title, an action, and an `EllipsisMenu` menu.
|
||
|
|
||
|
Props
|
||
|
-----
|
||
|
|
||
|
### `action`
|
||
|
|
||
|
- Type: ReactNode
|
||
|
- Default: null
|
||
|
|
||
|
One "primary" action for this card, appears in the card header.
|
||
|
|
||
|
### `className`
|
||
|
|
||
|
- Type: String
|
||
|
- Default: null
|
||
|
|
||
|
Additional CSS classes.
|
||
|
|
||
|
### `menu`
|
||
|
|
||
|
- Type: (custom validator)
|
||
|
- Default: null
|
||
|
|
||
|
An `EllipsisMenu`, with filters used to control the content visible in this card
|
||
|
|
||
|
### `title`
|
||
|
|
||
|
- **Required**
|
||
|
- Type: One of type: string, node
|
||
|
- Default: null
|
||
|
|
||
|
The title to use for this card.
|
||
|
|