diff --git a/packages/react-core/src/demos/DescriptionList/DescriptionList.md b/packages/react-core/src/demos/DescriptionList/DescriptionList.md new file mode 100644 index 00000000000..bf064a69b39 --- /dev/null +++ b/packages/react-core/src/demos/DescriptionList/DescriptionList.md @@ -0,0 +1,14 @@ +--- +id: Description list +section: components +--- + +import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon'; +import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper'; + +## Demos + +### Basic + +```js file='./examples/DescriptionListBasic.tsx' isFullscreen +``` \ No newline at end of file diff --git a/packages/react-core/src/demos/DescriptionList/examples/DescriptionListBasic.tsx b/packages/react-core/src/demos/DescriptionList/examples/DescriptionListBasic.tsx new file mode 100644 index 00000000000..772ce127546 --- /dev/null +++ b/packages/react-core/src/demos/DescriptionList/examples/DescriptionListBasic.tsx @@ -0,0 +1,86 @@ +import React from 'react'; +import { + DescriptionList, + DescriptionListTerm, + DescriptionListGroup, + DescriptionListDescription, + PageSection, + PageSectionVariants, + Card, + CardBody, + CardHeader, + TextContent, + Text, + Title, + Divider, + Flex, + FlexItem +} from '@patternfly/react-core'; +import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon'; +import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper'; + +export const DescriptionListBasic: React.FunctionComponent = () => ( + + + + Projects + This is a full page demo + + + + + + + Details + + + + + + + Name + mary-test + + + Status + + + + + + Active + + + + + Default pull secret + Not configured + + + Tolerations + 6 Tolerations + + + Network Policies + + Network Policies + + + + Display name + mary + + + Requester + kube:admin + + + Created at: + 3 minutes ago + + + + + + +);