fix(code-snippet): forward feedback, feedbackTimeout to Copy

This commit is contained in:
Eric Liu 2020-08-07 05:56:09 -07:00
commit f0ef921f7d

View file

@ -115,6 +115,8 @@
<Copy <Copy
aria-label={copyLabel} aria-label={copyLabel}
aria-describedby={id} aria-describedby={id}
{feedback}
{feedbackTimeout}
class="bx--snippet {type && `bx--snippet--${type}`} class="bx--snippet {type && `bx--snippet--${type}`}
{type === 'inline' && 'bx--btn--copy'} {type === 'inline' && 'bx--btn--copy'}
{expanded && 'bx--snippet--expand'} {expanded && 'bx--snippet--expand'}