You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/clipboard-copy/clipboard-copy.md
+29-13Lines changed: 29 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,14 @@ id: Clipboard copy
3
3
section: components
4
4
---
5
5
6
+
import '../components.css';
7
+
6
8
## Elements
7
9
Clipboard copy has 3 main components.
8
10
9
-
<imgsrc="./img/clipboard-copy-elements.png"alt="Elements of the clipboard copy component"width="468"/>
11
+
<divclass="ws-docs-content-img">
12
+

13
+
</div>
10
14
11
15
1.**Copy content:** the content that will be copied to the user’s clipboard.
12
16
2.**Clipboard button:** completes the copy action when clicked.
@@ -22,45 +26,57 @@ The clipboard copy component can be editable or read-only and both types can opt
22
26
23
27
An editable clipboard copy allows users to copy an editable text input box.
24
28
25
-
<imgsrc="./img/editable.png"alt="Example of an editable clipboard copy component"width="434"/>
29
+
<divclass="ws-docs-content-img">
30
+

31
+
</div>
26
32
27
33
**Read-only**
28
34
29
35
A read-only clipboard copy only allows the user to copy a predefined line of text that is not editable by the user.
30
36
31
-
<imgsrc="./img/read-only.png"alt="Example of a read-only clipboard copy component"width="434"/>
37
+
<divclass="ws-docs-content-img">
38
+

39
+
</div>
32
40
33
41
**Expandable**
34
42
35
43
An expandable clipboard copy allows for long lines of text to be stored in an expansion panel. Expanding the clipboard copy allows the user to view the full string that they can copy.
36
44
37
-
<imgsrc="./img/expandable.png"alt="Example of an expandable clipboard copy component"width="455"/>
45
+
<divclass="ws-docs-content-img">
46
+

47
+
</div>
38
48
39
49
**Inline compact**
40
50
41
51
An inline compact clipboard copy is placed directly inline with other text or used on its own when you want a lighter weight clipboard copy treatment.
42
52
43
-
<imgsrc="./img/inline-one-action.png"alt="Example of an inline compact clipboard copy component with one action"width="355"/>
53
+
<divclass="ws-docs-content-img">
54
+

55
+
</div>
44
56
45
57
An inline compact clipboard copy can include one or two action buttons next to it. The second action is customizable and optional.
46
58
47
-
<imgsrc="./img/inline-two-actions.png"alt="Example of an inline compact clipboard copy component with two actions"width="355"/>
59
+
<divclass="ws-docs-content-img">
60
+

61
+
</div>
48
62
49
63
### Clipboard copy in context
50
64
Clipboard copy can be used almost anywhere in a UI. It is commonly used in forms and definition lists.
51
65
52
66
**Clipboard copy in a form**
53
67
54
-
<imgsrc="./img/form.png"alt="Example of clipboard copy in a form"width="1067"/>
68
+
<divclass="ws-docs-content-img">
69
+

70
+
</div>
55
71
56
72
**Clipboard copy in a description list**
57
73
58
-
<imgsrc="./img/description-list.png"alt="Example of clipboard copy in a description list"width="629"/>
59
-
60
-
**Inline compact clipboard copy for URLs**
61
-
62
-
<imgsrc="./img/clipboard-copy-url.png"alt="Example of an inline compact clipboard copy next to a URL"width="657"/>
74
+
<divclass="ws-docs-content-img">
75
+

76
+
</div>
63
77
64
78
**Inline compact clipboard copy in context**
65
79
66
-
<imgsrc="./img/inline-in-context.png"alt="Example of an inline compact clipboard copy in context"width="448"/>
80
+
<divclass="ws-docs-content-img">
81
+

Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/clipboard-copy/img/clipboard-copy-description-list.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/clipboard-copy/img/clipboard-copy-editable.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/clipboard-copy/img/clipboard-copy-elements.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/clipboard-copy/img/clipboard-copy-expandable.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/clipboard-copy/img/clipboard-copy-form.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/clipboard-copy/img/clipboard-copy-inline-compact-1.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/clipboard-copy/img/clipboard-copy-inline-compact-2.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/clipboard-copy/img/clipboard-copy-inline-compact-4.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/clipboard-copy/img/clipboard-copy-readonly.svg
0 commit comments