<kern-copy>
Technical value in monospace with a copy button (MAC, IP, device ID, commands). The button stops click propagation so a clickable table row does not open.
Examples
Copyable values
Shows a technical value in monospace with a copy button. The text content is copied unless value is set, e.g. to copy a MAC without separators. The button stops click propagation, so it is safe inside a clickable table row.
Properties
labelstring | undefined
Tooltip and accessible label of the button.
valuestring | undefined
Copied text; defaults to the text content.
Events
kernCopyCustomEvent<{ value: string; }>
After a successful copy.
Slots
(default)Displayed text (defaults to value)
CSS parts
buttonThe copy button