feat(component): add CopyButtonComponent
This commit is contained in:
parent
1efcacd845
commit
36195acb29
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
%span{ data: { controller: 'clipboard', clipboard_text_value: @text } }
|
||||
%button{ data: { action: 'clipboard#copy' }, title: @title }
|
||||
%span.fr-icon-clipboard-line
|
||||
%p.fr-text--sm.hidden{ data: { clipboard_target: 'success' } }
|
||||
%span.fr-text--sm.hidden{ data: { clipboard_target: 'success' } }
|
||||
= @success || t('.copy_confirmation')
|
||||
|
|
Loading…
Add table
Reference in a new issue