Carbon Components Svelte Versions Save

Svelte implementation of the Carbon Design System

v0.82.7

4 months ago

v0.82.6

4 months ago

v0.82.5

4 months ago

What's Changed

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.4...v0.82.5

v0.82.4

5 months ago

v0.82.3

5 months ago

What's Changed

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.2...v0.82.3

v0.82.2

5 months ago

What's Changed

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.1...v0.82.2

v0.82.1

5 months ago

What's Changed

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.0...v0.82.1

v0.82.0

5 months ago

What's Changed

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.81.3...v0.82.0


This release focuses on TreeView improvements.

TreeView node is slottable

Previously, the TreeView used the node.text value. Now, you can destructure let:node and override the default slot to customize the rendered content and styles on a per-node basis.

See an example.

<TreeView children="{children}" let:node>
  {node.id}
  {node.text}
  {node.expanded}
  {node.selected}
  {node.disabled}
  {node.leaf} <!-- True if the node is a leaf (node does not have children) -->
</TreeView>

Programmatically "show" a TreeView node

The TreeView component now supports a showNode accessor to show a specific node.

Given the node.id, the matching node will be expanded, selected, and focused.

See an example.

treeview?.showNode(node.id);

v0.81.3

5 months ago

v0.81.2

6 months ago