-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spinner): added isInline, updated link button (#8328)
* feat(spinner): added isInline, updated link button * chore(button): update snaps * chore(spinner/button): PR feedback
- Loading branch information
Showing
5 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/react-core/src/components/Spinner/examples/SpinnerInline.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
import { Spinner, Text, TextContent } from '@patternfly/react-core'; | ||
|
||
export const SpinnerInline: React.FunctionComponent = () => ( | ||
<React.Fragment> | ||
<TextContent> | ||
<Text component="h1"> | ||
Heading | ||
<Spinner isInline isSVG aria-label="Spinner in a heading" /> | ||
</Text> | ||
<Text component="p"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit Sed hendrerit nisi in cursus maximus. | ||
</Text> | ||
<Text component="h2"> | ||
Second level | ||
<Spinner isInline isSVG aria-label="spinner in a subheading" /> | ||
</Text> | ||
<Text component="p"> | ||
Curabitur accumsan turpis pharetra blandit. Quisque condimentum maximus mi,{' '} | ||
<Spinner isInline isSVG aria-label="Spinner in a paragraph" /> sit amet commodo arcu rutrum id. Proin pretium | ||
urna vel cursus venenatis. Suspendisse potenti. | ||
</Text> | ||
<small> | ||
Sometimes you need small text | ||
<Spinner isInline isSVG aria-label="Spinner in a small element" /> | ||
</small> | ||
</TextContent> | ||
</React.Fragment> | ||
); |