Skip to content

Commit

Permalink
docs(code-snippet): add "Hidden copy, show more buttons" example
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Feb 24, 2024
1 parent 94641f9 commit e612684
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/pages/components/CodeSnippet.svx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ Only multi-line code snippets have a "Show more" button by default. Set `showMor

<CodeSnippet type="multi" {code} showMoreLess={false} />

## Hidden copy, show more buttons

<CodeSnippet type="multi" {code} hideCopyButton showMoreLess={false} />

## Disabled

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

0 comments on commit e612684

Please sign in to comment.