mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
feat(code-snippet): support disabled state for single and multi-line types
This commit is contained in:
parent
524b5080a6
commit
3dde418398
6 changed files with 37 additions and 2 deletions
7
types/CodeSnippet/CodeSnippet.d.ts
vendored
7
types/CodeSnippet/CodeSnippet.d.ts
vendored
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue