feat(code-snippet): support disabled state for single and multi-line types

This commit is contained in:
Eric Liu 2021-01-22 14:38:26 -08:00
commit 3dde418398
6 changed files with 37 additions and 2 deletions

View file

@ -25,6 +25,13 @@ export interface CodeSnippetProps {
*/
hideCopyButton?: boolean;
/**
* Set to `true` for the disabled variant
* Only applies to the "single", "multi" types
* @default false
*/
disabled?: boolean;
/**
* Set to `true` to wrap the text
* Note that `type` must be "multi"