Skip to content

Commit 79b0f8d

Browse files
committed
docs(code-snippet): add "Hidden show more button" example
Related #1536
1 parent 4085536 commit 79b0f8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/src/pages/components/CodeSnippet.svx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ Set `hideCopyButton` to `true` to hide the copy button.
8484

8585
<CodeSnippet type="multi" {code} hideCopyButton />
8686

87+
## Hidden show more button
88+
89+
Only multi-line code snippets have a "Show more" button by default. Set `showMoreLess` to `false` to hide it.
90+
91+
<CodeSnippet type="multi" {code} showMoreLess={false} />
92+
8793
## Disabled
8894

8995
The `disabled` prop applies only to the `"single"` and `"multi"` code snippet types.

0 commit comments

Comments
 (0)