mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs(code-snippet): add "Hidden show more button" example
Related #1536
This commit is contained in:
parent
4085536189
commit
79b0f8dbf0
1 changed files with 6 additions and 0 deletions
|
@ -84,6 +84,12 @@ Set `hideCopyButton` to `true` to hide the copy button.
|
|||
|
||||
<CodeSnippet type="multi" {code} hideCopyButton />
|
||||
|
||||
## Hidden show more button
|
||||
|
||||
Only multi-line code snippets have a "Show more" button by default. Set `showMoreLess` to `false` to hide it.
|
||||
|
||||
<CodeSnippet type="multi" {code} showMoreLess={false} />
|
||||
|
||||
## Disabled
|
||||
|
||||
The `disabled` prop applies only to the `"single"` and `"multi"` code snippet types.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue