As a button
Card can be used as a clickable button item by specifying onClick prop.
Hello, Grafana
Clicking this card will create an alert
Hello, Grafana
Clicking on this text (Description) WILL trigger the alert!
Inside a list item
To render cards in a list, it is possible to nest them inside li items.
- List card itemCard that is rendered inside li element.
- List card itemCard that is rendered inside li element.
- List card itemCard that is rendered inside li element.
- List card itemCard that is rendered inside li element.
With media elements
Cards can also be rendered with media content such as icons or images.
1-ops-tools1-fallback
Action cards
Cards also accept primary and secondary actions.
1-ops-tools1-fallback
Disabled state
Card can have a disabled state, effectively making it and its actions non-clickable.
1-ops-tools1-fallback
1-ops-tools1-fallback
Selectable
Option #1