diff --git a/packages/react-core/src/components/Skeleton/examples/Skeleton.md b/packages/react-core/src/components/Skeleton/examples/Skeleton.md index 3db117e243a..0062ad91380 100644 --- a/packages/react-core/src/components/Skeleton/examples/Skeleton.md +++ b/packages/react-core/src/components/Skeleton/examples/Skeleton.md @@ -9,118 +9,25 @@ propComponents: ['Skeleton'] ### Default -```js -import React from 'react'; -import { Skeleton } from '@patternfly/react-core'; - -; +```ts file="./SkeletonDefault.tsx" ``` ### Percentage widths -```js -import React from 'react'; -import { Skeleton } from '@patternfly/react-core'; - - - -
- -
- -
- -
- -
- -
; +```ts file="./SkeletonPercentageWidth.tsx" ``` ### Percentage heights -```js -import React from 'react'; -import { Skeleton } from '@patternfly/react-core'; - -
- - - - - - -
; +```ts file="./SkeletonPercentageHeight.tsx" ``` ### Text modifiers -```js -import React from 'react'; -import { Skeleton } from '@patternfly/react-core'; - - - --pf-global--FontSize--4xl - -
- --pf-global--FontSize--3xl - -
- --pf-global--FontSize--2xl - -
- --pf-global--FontSize--xl - -
- --pf-global--FontSize--lg - -
- --pf-global--FontSize--md - -
- --pf-global--FontSize--sm - -
; +```ts file="./SkeletonText.tsx" ``` ### Shapes -```js -import React from 'react'; -import { Skeleton } from '@patternfly/react-core'; - - - Small circle - -
- Medium circle - -
- Large circle - -
- Small square - -
- Medium square - -
- Large square - -
- Small rectangle -
- -
-
- Medium rectangle -
- -
-
- Large rectangle -
- -
-
; +```ts file="./SkeletonShapes.tsx" ``` diff --git a/packages/react-core/src/components/Skeleton/examples/SkeletonDefault.tsx b/packages/react-core/src/components/Skeleton/examples/SkeletonDefault.tsx new file mode 100644 index 00000000000..47d75fa63b7 --- /dev/null +++ b/packages/react-core/src/components/Skeleton/examples/SkeletonDefault.tsx @@ -0,0 +1,4 @@ +import React from 'react'; +import { Skeleton } from '@patternfly/react-core'; + +export const SkeletonDefault: React.FunctionComponent = () => ; diff --git a/packages/react-core/src/components/Skeleton/examples/SkeletonPercentageHeight.tsx b/packages/react-core/src/components/Skeleton/examples/SkeletonPercentageHeight.tsx new file mode 100644 index 00000000000..3f19887aa94 --- /dev/null +++ b/packages/react-core/src/components/Skeleton/examples/SkeletonPercentageHeight.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +import { Skeleton } from '@patternfly/react-core'; + +export const SkeletonPercentageHeight: React.FunctionComponent = () => ( +
+ + + + + + +
+); diff --git a/packages/react-core/src/components/Skeleton/examples/SkeletonPercentageWidth.tsx b/packages/react-core/src/components/Skeleton/examples/SkeletonPercentageWidth.tsx new file mode 100644 index 00000000000..39ca9ae7bd2 --- /dev/null +++ b/packages/react-core/src/components/Skeleton/examples/SkeletonPercentageWidth.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import { Skeleton } from '@patternfly/react-core'; + +export const SkeletonPercentageWidth: React.FunctionComponent = () => ( + + +
+ +
+ +
+ +
+ +
+ +
+); diff --git a/packages/react-core/src/components/Skeleton/examples/SkeletonShapes.tsx b/packages/react-core/src/components/Skeleton/examples/SkeletonShapes.tsx new file mode 100644 index 00000000000..e94153ce482 --- /dev/null +++ b/packages/react-core/src/components/Skeleton/examples/SkeletonShapes.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Skeleton } from '@patternfly/react-core'; + +export const SkeletonShapes: React.FunctionComponent = () => ( + + Small circle + +
+ Medium circle + +
+ Large circle + +
+ Small square + +
+ Medium square + +
+ Large square + +
+ Small rectangle +
+ +
+
+ Medium rectangle +
+ +
+
+ Large rectangle +
+ +
+
+); diff --git a/packages/react-core/src/components/Skeleton/examples/SkeletonText.tsx b/packages/react-core/src/components/Skeleton/examples/SkeletonText.tsx new file mode 100644 index 00000000000..160b9dfc49f --- /dev/null +++ b/packages/react-core/src/components/Skeleton/examples/SkeletonText.tsx @@ -0,0 +1,27 @@ +import React from 'react'; +import { Skeleton } from '@patternfly/react-core'; + +export const SkeletonText: React.FunctionComponent = () => ( + + --pf-global--FontSize--4xl + +
+ --pf-global--FontSize--3xl + +
+ --pf-global--FontSize--2xl + +
+ --pf-global--FontSize--xl + +
+ --pf-global--FontSize--lg + +
+ --pf-global--FontSize--md + +
+ --pf-global--FontSize--sm + +
+);