mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(code-snippet): showMoreLess={false}
should hide button
Fixes #1536 If `showMoreLess` is explicitly `false` for multi-line code snippets, the button should not be shown at all.
This commit is contained in:
parent
17f4c49519
commit
4085536189
4 changed files with 23 additions and 9 deletions
6
types/CodeSnippet/CodeSnippet.svelte.d.ts
vendored
6
types/CodeSnippet/CodeSnippet.svelte.d.ts
vendored
|
@ -104,8 +104,10 @@ export interface CodeSnippetProps {
|
|||
showMoreText?: string;
|
||||
|
||||
/**
|
||||
* Set to `true` to enable the show more/less button
|
||||
* @default false
|
||||
* Set to `false` to hide the show more/less button
|
||||
*
|
||||
* NOTE: this prop only works with the `type="multi"` variant
|
||||
* @default true
|
||||
*/
|
||||
showMoreLess?: boolean;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue