Code Snippet
Shows an identifier or a command that people copy into a device log or a script.
Device dev_8f21
Playground
Variants and states
| Property | Options | Notes |
|---|---|---|
| variant | inline, block | Inline for an ID. Block for a command. |
| padding | 24px | 8px radius and the border color as the fill. 12px between the copy link and the command. |
| code | string | 14px Roboto Mono, 150% line height. Copy copies the full value. |
Accessibility
- The copy control is a button named Copy code.
- The code is text, not an image.