Clipboard Copy
Overview
Clipboard Copy
Installation
npm install @patternfly/elements
Usage
Slots
- Default Slot
-
Place content to copy here, or use the
value
attribute actions
-
Place additional action buttons here
Attributes
click-tip
- DOM Property
clickTip
- Type
-
string
- Default
-
'Copied'
hover-tip
- DOM Property
hoverTip
- Type
-
string
- Default
-
'Copy'
text-label
- DOM Property
textAriaLabel
- Type
-
string
- Default
-
'Copyable input'
toggle-label
- DOM Property
toggleAriaLabel
- Type
-
string
- Default
-
'Show content'
entry-delay
- DOM Property
entryDelay
- Type
-
number
- Default
-
300
exit-delay
- DOM Property
exitDelay
- Type
-
number
- Default
-
1500
block
- DOM Property
block
- Type
-
boolean
- Default
-
false
code
- DOM Property
code
- Type
-
boolean
- Default
-
false
expanded
- DOM Property
expanded
- Type
-
boolean
- Default
-
false
expandable
-
Implies not
inline
.- DOM Property
expandable
- Type
-
boolean
- Default
-
false
readonly
- DOM Property
readonly
- Type
-
boolean
- Default
-
false
inline
-
Implies not expandable. Overrules
expandable
.- DOM Property
inline
- Type
-
boolean
- Default
-
false
compact
- DOM Property
compact
- Type
-
boolean
- Default
-
false
value
- DOM Property
value
- Type
-
string
- Default
-
''
Methods
copy()
-
Copy the current value to the clipboard.
Events
None
CSS Custom Properties
None
CSS Shadow Parts
None