mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 03:49:34 +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
|
@ -47,6 +47,14 @@ let comment = `
|
|||
|
||||
<CodeSnippet type="multi" {code} hideCopyButton />
|
||||
|
||||
### Disabled
|
||||
|
||||
The `disabled` prop applies only to the `"single"` and `"multi"` code snippet types.
|
||||
|
||||
<CodeSnippet disabled>yarn add -D carbon-components-svelte</CodeSnippet>
|
||||
<br />
|
||||
<CodeSnippet disabled type="multi" code="{comment}" />
|
||||
|
||||
### Wrapped text
|
||||
|
||||
`wrapText` only applies to the `"multi"` type.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue