Svelte implementation of the Carbon Design System
value
type to be a number by @metonym in https://github.com/carbon-design-system/carbon-components-svelte/pull/1868
Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.6...v0.82.7
Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.5...v0.82.6
active
is false by @metonym in https://github.com/carbon-design-system/carbon-components-svelte/pull/1857
exports
field to package.json by @hslee2008 in https://github.com/carbon-design-system/carbon-components-svelte/pull/1864
Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.4...v0.82.5
Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.3...v0.82.4
Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.2...v0.82.3
Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.1...v0.82.2
button type="button"
to prevent form submission by @metonym in https://github.com/carbon-design-system/carbon-components-svelte/pull/1846
Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.0...v0.82.1
node
slottable by @metonym in https://github.com/carbon-design-system/carbon-components-svelte/pull/1843
showNode
accessor by @metonym in https://github.com/carbon-design-system/carbon-components-svelte/pull/1844
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 slottablePreviously, 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>
TreeView
nodeThe 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);
class
and style
props by @metonym in https://github.com/carbon-design-system/carbon-components-svelte/pull/1840
Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.81.2...v0.81.3
Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.81.1...v0.81.2