| 1 |
--- |
| 2 |
id: Card view |
| 3 |
section: patterns |
| 4 |
--- |
| 5 |
|
| 6 |
import { Fragment, useState } from 'react'; |
| 7 |
import TrashIcon from '@patternfly/react-icons/dist/esm/icons/trash-icon'; |
| 8 |
import RhUiAddCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-add-circle-fill-icon'; |
| 9 |
import pfIcon from '../assets/pf-logo-small.svg'; |
| 10 |
import activeMQIcon from '../assets/activemq-core_200x150.png'; |
| 11 |
import avroIcon from '../assets/camel-avro_200x150.png'; |
| 12 |
import dropBoxIcon from '../assets/camel-dropbox_200x150.png'; |
| 13 |
import infinispanIcon from '../assets/camel-infinispan_200x150.png'; |
| 14 |
import saxonIcon from '../assets/camel-saxon_200x150.png'; |
| 15 |
import sparkIcon from '../assets/camel-spark_200x150.png'; |
| 16 |
import swaggerIcon from '../assets/camel-swagger-java_200x150.png'; |
| 17 |
import azureIcon from '../assets/FuseConnector_Icons_AzureServices.png'; |
| 18 |
import restIcon from '../assets/FuseConnector_Icons_REST.png'; |
| 19 |
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon'; |
| 20 |
import { data } from '@patternfly/react-core/src/demos/CardView/examples/CardViewData.jsx'; |
| 21 |
|
| 22 |
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper'; |
| 23 |
|
| 24 |
## Demos |
| 25 |
|
| 26 |
This demonstrates how you can assemble a full page view that contains a grid of equal sized cards that includes a toolbar for managing card grid contents. |
| 27 |
|
| 28 |
### Card view |
| 29 |
|
| 30 |
```ts file="examples/CardView.tsx" isFullscreen |
| 31 |
``` |