From 4e6bfd06124eefcafc8676a2a1a2bd632ba65605 Mon Sep 17 00:00:00 2001 From: metonym Date: Sat, 24 Feb 2024 10:39:14 -0800 Subject: [PATCH] docs(code-snippet): add "Custom show more/less text" example (#1918) --- 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 67845b9b..b5d78490 100644 --- a/docs/src/pages/components/CodeSnippet.svx +++ b/docs/src/pages/components/CodeSnippet.svx @@ -94,6 +94,12 @@ Only multi-line code snippets have a "Show more" button by default. Set `showMor +## Custom show more/less text + +Use the `showMoreText` and `showLessText` props to override the default "Show more" and "Show less" button text. + + + ## Disabled The `disabled` prop applies only to the `"single"` and `"multi"` code snippet types.