-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(Checkbox): add examples of reversed and label wraps (#10318)
* docs(Checkbox): add examples of reversed and label wraps * docs(Checkbox/Radio): update example description
- Loading branch information
1 parent
0e2f36e
commit 6d5bde2
Showing
4 changed files
with
42 additions
and
0 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
11 changes: 11 additions & 0 deletions
11
packages/react-core/src/components/Checkbox/examples/CheckboxLabelWraps.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,11 @@ | ||
import React from 'react'; | ||
import { Checkbox } from '@patternfly/react-core'; | ||
|
||
export const CheckboxLabelWraps: React.FunctionComponent = () => ( | ||
<Checkbox | ||
isLabelWrapped | ||
label="Label wraps input example" | ||
id="checkbox-label-wraps-input" | ||
name="checkbox-label-wraps-input" | ||
/> | ||
); |
6 changes: 6 additions & 0 deletions
6
packages/react-core/src/components/Checkbox/examples/CheckboxReversed.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,6 @@ | ||
import React from 'react'; | ||
import { Checkbox } from '@patternfly/react-core'; | ||
|
||
export const CheckboxReversed: React.FunctionComponent = () => ( | ||
<Checkbox isLabelBeforeButton label="Reversed checkbox example" id="checkbox-reversed" name="checkbox-reversed" /> | ||
); |
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