We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 409bc3f commit 1c204c9Copy full SHA for 1c204c9
ux.symfony.com/templates/components/TerminalCommand.html.twig
@@ -1,13 +1,16 @@
1
-<div {{ attributes.defaults({class: 'TerminalCommand'}) }} data-controller="ux-clipboard">
+<div {{ attributes.defaults({class: 'TerminalCommand'}) }}
2
+ data-controller="ux-clipboard"
3
+ data-ux-clipboard-source-value="{{ command }}"
4
+>
5
<pre
6
class="TerminalCommand_input"
7
aria-label="{{ label|default }}"
- ><code data-clipboard-target="source">{{ command }}</code></pre>
8
+ ><code>{{ command }}</code></pre>
9
<button
10
type="button"
11
class="TerminalCommand_action btn btn-copy"
12
aria-label="Copy command"
- data-action="clipboard#copy"
13
+ data-action="ux-clipboard#copy"
14
>
15
<twig:Icon name="copy"/>
16
</button>
0 commit comments