mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat(code-snippet): add wrapText prop
This commit is contained in:
parent
e1ee3a6092
commit
48bd19f75e
4 changed files with 32 additions and 2 deletions
7
types/index.d.ts
vendored
7
types/index.d.ts
vendored
|
@ -387,6 +387,13 @@ export class CodeSnippet extends CarbonSvelteComponent {
|
|||
*/
|
||||
hideCopyButton?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to wrap the text
|
||||
* Note that `type` must be "multi"
|
||||
* @default false
|
||||
*/
|
||||
wrapText?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to enable the light variant
|
||||
* @default false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue