From 79b0f8dbf03df5c4bc863f72a20a3ff5b1347022 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 24 Feb 2024 10:16:44 -0800 Subject: [PATCH] docs(code-snippet): add "Hidden show more button" example Related #1536 --- docs/src/pages/components/CodeSnippet.svx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/src/pages/components/CodeSnippet.svx b/docs/src/pages/components/CodeSnippet.svx index c01c60e1..6fdedd13 100644 --- a/docs/src/pages/components/CodeSnippet.svx +++ b/docs/src/pages/components/CodeSnippet.svx @@ -84,6 +84,12 @@ Set `hideCopyButton` to `true` to hide the copy button. +## Hidden show more button + +Only multi-line code snippets have a "Show more" button by default. Set `showMoreLess` to `false` to hide it. + + + ## Disabled The `disabled` prop applies only to the `"single"` and `"multi"` code snippet types.