mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 03:01:25 +00:00
chore: v11 TreeView
Size `compact` changed to `xs`. For better compatibility with existing codebases size `compact` is still supported.
This commit is contained in:
parent
b20fc59e75
commit
90a0baf676
7 changed files with 14 additions and 14 deletions
|
@ -14485,8 +14485,8 @@
|
|||
"name": "size",
|
||||
"kind": "let",
|
||||
"description": "Specify the TreeView size",
|
||||
"type": "\"default\" | \"compact\"",
|
||||
"value": "\"default\"",
|
||||
"type": "\"xs\" | \"sm\"",
|
||||
"value": "\"sm\"",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
"isRequired": false,
|
||||
|
|
|
@ -40,11 +40,11 @@ The active node can be set through `activeId`.
|
|||
|
||||
<FileSource src="/framed/TreeView/TreeViewActive" />
|
||||
|
||||
## Compact size
|
||||
## Extra-small size
|
||||
|
||||
Set `size` to `"compact"` to use the compact variant.
|
||||
Set `size` to `"xs"` to use the extra-small variant.
|
||||
|
||||
<FileSource src="/framed/TreeView/TreeViewCompact" />
|
||||
<FileSource src="/framed/TreeView/TreeViewXs" />
|
||||
|
||||
## With icons
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
</script>
|
||||
|
||||
<TreeView
|
||||
size="compact"
|
||||
size="xs"
|
||||
labelText="Cloud Products"
|
||||
children="{children}"
|
||||
bind:activeId
|
Loading…
Add table
Add a link
Reference in a new issue