` or nest html elements within ``. Similarly, when you need to add a divider, rather than passing in a separate `` component, you should use ``, which will be styled as a divider.
+
+## Examples
+
+### Content as a styling wrapper
+
+```ts file="./ContentWrapper.tsx"
+
+```
+
+### Headings
+
+```ts file="./ContentHeadings.tsx"
+
+```
+
+### Body
+
+```ts file="./ContentBody.tsx"
+
+```
+
+### Unordered list
+
+```ts file="./ContentUnorderedList.tsx"
+
+```
+
+### Ordered list
+
+```ts file="./ContentOrderedList.tsx"
+
+```
+
+### Plain list
+
+```ts file="./ContentPlainList.tsx"
+
+```
+
+### Description list
+
+```ts file="./ContentDescriptionList.tsx"
+
+```
+
+### Link and visited link
+
+```ts file="./ContentVisited.tsx"
+
+```
diff --git a/packages/react-core/src/components/Text/examples/TextBody.tsx b/packages/react-core/src/components/Content/examples/ContentBody.tsx
similarity index 58%
rename from packages/react-core/src/components/Text/examples/TextBody.tsx
rename to packages/react-core/src/components/Content/examples/ContentBody.tsx
index 88fa3a9b4da..c9c78f87bef 100644
--- a/packages/react-core/src/components/Text/examples/TextBody.tsx
+++ b/packages/react-core/src/components/Content/examples/ContentBody.tsx
@@ -1,24 +1,26 @@
import React from 'react';
-import { Text, TextVariants } from '@patternfly/react-core';
+import { Content } from '@patternfly/react-core';
-export const TextBody: React.FunctionComponent = () => (
+export const ContentBody: React.FunctionComponent = () => (
<>
-
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla
nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel
erat vel, interdum mattis neque. Sub works as well!
-
-
+
+
Quisque ante lacus, malesuada ac auctor vitae, congue{' '}
-
+
non ante
-
+
. Phasellus lacus ex, semper ac tortor nec, fringilla condimentum orci. Fusce eu rutrum tellus.
-
-
+
+
Ut venenatis, nisl scelerisque sollicitudin fermentum, quam libero hendrerit ipsum, ut blandit est tellus sit amet
turpis.
-
- Sometimes you need small text to display things like date created
+
+
+ Sometimes you need small text to display things like date created - but better use Timestamp component for that.
+
>
);
diff --git a/packages/react-core/src/components/Content/examples/ContentDescriptionList.tsx b/packages/react-core/src/components/Content/examples/ContentDescriptionList.tsx
new file mode 100644
index 00000000000..d67fcbffbba
--- /dev/null
+++ b/packages/react-core/src/components/Content/examples/ContentDescriptionList.tsx
@@ -0,0 +1,13 @@
+import React from 'react';
+import { Content } from '@patternfly/react-core';
+
+export const ContentDescriptionList: React.FunctionComponent = () => (
+
+ Web
+ The part of the Internet that contains websites and web pages
+ HTML
+ A markup language for creating web pages
+ CSS
+ A technology to make HTML look better
+
+);
diff --git a/packages/react-core/src/components/Content/examples/ContentHeadings.tsx b/packages/react-core/src/components/Content/examples/ContentHeadings.tsx
new file mode 100644
index 00000000000..2973eadd6e6
--- /dev/null
+++ b/packages/react-core/src/components/Content/examples/ContentHeadings.tsx
@@ -0,0 +1,13 @@
+import React from 'react';
+import { Content } from '@patternfly/react-core';
+
+export const ContentHeadings: React.FunctionComponent = () => (
+ <>
+ Hello World
+ Second level
+ Third level
+ Fourth level
+ Fifth level
+ Sixth level
+ >
+);
diff --git a/packages/react-core/src/components/Content/examples/ContentOrderedList.tsx b/packages/react-core/src/components/Content/examples/ContentOrderedList.tsx
new file mode 100644
index 00000000000..e4642593c35
--- /dev/null
+++ b/packages/react-core/src/components/Content/examples/ContentOrderedList.tsx
@@ -0,0 +1,14 @@
+import React from 'react';
+import { Content } from '@patternfly/react-core';
+
+export const ContentOrderedList: React.FunctionComponent = () => (
+
+ Donec blandit a lorem id convallis.
+ Cras gravida arcu at diam gravida gravida.
+ Integer in volutpat libero.
+ Donec a diam tellus.
+ Aenean nec tortor orci.
+ Quisque aliquam cursus urna, non bibendum massa viverra eget.
+ Vivamus maximus ultricies pulvinar.
+
+);
diff --git a/packages/react-core/src/components/Content/examples/ContentPlainList.tsx b/packages/react-core/src/components/Content/examples/ContentPlainList.tsx
new file mode 100644
index 00000000000..0fad94e2b9e
--- /dev/null
+++ b/packages/react-core/src/components/Content/examples/ContentPlainList.tsx
@@ -0,0 +1,24 @@
+import React from 'react';
+import { Content } from '@patternfly/react-core';
+
+export const ContentPlainList: React.FunctionComponent = () => (
+ <>
+ Plain unordered list
+
+ In fermentum leo eu lectus mollis, quis dictum mi aliquet.
+ Morbi eu nulla lobortis, lobortis est in, fringilla felis.
+ Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.
+ Ut non enim metus.
+
+ Plain ordered list
+
+ Donec blandit a lorem id convallis.
+ Cras gravida arcu at diam gravida gravida.
+ Integer in volutpat libero.
+ Donec a diam tellus.
+ Aenean nec tortor orci.
+ Quisque aliquam cursus urna, non bibendum massa viverra eget.
+ Vivamus maximus ultricies pulvinar.
+
+ >
+);
diff --git a/packages/react-core/src/components/Content/examples/ContentUnorderedList.tsx b/packages/react-core/src/components/Content/examples/ContentUnorderedList.tsx
new file mode 100644
index 00000000000..c1494bb512e
--- /dev/null
+++ b/packages/react-core/src/components/Content/examples/ContentUnorderedList.tsx
@@ -0,0 +1,17 @@
+import React from 'react';
+import { Content } from '@patternfly/react-core';
+
+export const ContentUnorderedList: React.FunctionComponent = () => (
+
+ In fermentum leo eu lectus mollis, quis dictum mi aliquet.
+ Morbi eu nulla lobortis, lobortis est in, fringilla felis.
+
+ Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.
+
+ In fermentum leo eu lectus mollis, quis dictum mi aliquet.
+ Morbi eu nulla lobortis, lobortis est in, fringilla felis.
+
+
+ Ut non enim metus.
+
+);
diff --git a/packages/react-core/src/components/Content/examples/ContentVisited.tsx b/packages/react-core/src/components/Content/examples/ContentVisited.tsx
new file mode 100644
index 00000000000..f1ae107ae5b
--- /dev/null
+++ b/packages/react-core/src/components/Content/examples/ContentVisited.tsx
@@ -0,0 +1,30 @@
+import React from 'react';
+import { Content } from '@patternfly/react-core';
+
+export const ContentVisited: React.FunctionComponent = () => (
+ <>
+
+ Link with isVisitedLink prop
+
+
+ Click to visit link
+
+
+
+
+
+ Links wrapped in Content with isVisitedLink prop
+
+
+ >
+);
diff --git a/packages/react-core/src/components/Content/examples/ContentWrapper.tsx b/packages/react-core/src/components/Content/examples/ContentWrapper.tsx
new file mode 100644
index 00000000000..8d8ed1728cc
--- /dev/null
+++ b/packages/react-core/src/components/Content/examples/ContentWrapper.tsx
@@ -0,0 +1,13 @@
+import React from 'react';
+import { Content } from '@patternfly/react-core';
+
+export const ContentWrapper: React.FunctionComponent = () => (
+
+
+ Content with a component of type "p" still renders the same when wrapped with a parent Content.
+
+ If located within a wrapping Content, html elements are styled as well!
+ This h6 html element is also styled, because it is inside Content.
+ And this blockquote too!
+
+);
diff --git a/packages/react-core/src/components/Content/index.ts b/packages/react-core/src/components/Content/index.ts
new file mode 100644
index 00000000000..b39182a1a2f
--- /dev/null
+++ b/packages/react-core/src/components/Content/index.ts
@@ -0,0 +1 @@
+export * from './Content';
diff --git a/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx b/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx
index 361c85aabb1..69d508fa043 100644
--- a/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx
+++ b/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx
@@ -1,5 +1,6 @@
import React from 'react';
import {
+ Content,
DataList,
DataListItem,
DataListCell,
@@ -9,9 +10,6 @@ import {
DataListContent,
DataListItemCells,
DataListItemRow,
- Text,
- TextVariants,
- TextContent,
Dropdown,
DropdownList,
DropdownItem,
@@ -44,9 +42,7 @@ export const DataListWidthModifiers: React.FunctionComponent = () => {
return (
<>
-
- Default fitting - example 1
-
+ Default fitting - example 1
-
- Flex modifiers - example 2
-
+ Flex modifiers - example 2
-
- Flex modifiers - example 3
-
+
Flex modifiers - example 3