github carbon-design-system/carbon-components-svelte v0.93.0

5 hours ago

What's Changed

⚠ BREAKING CHANGES

Features

Bug Fixes


New Stack component

Use Stack to manage vertical and horizontal spacing using Carbon Design System layout tokens. See Documentation.

<Stack>
  <p>Item 1</p>
  <p>Item 2</p>
  <p>Item 3</p>
</Stack>

OverflowMenuItem supports close on click

Use preventDefault() on individual click events to prevent the menu from closing when that item is clicked.

<OverflowMenu>
  <OverflowMenuItem
    text="Show all files"
    on:click={(e) => {
      // Prevent menu from closing for this item.
      e.preventDefault();
    }}
  />
  <OverflowMenuItem text="Close menu" />
</OverflowMenu>

Full Changelog: v0.92.0...v0.93.0

Don't miss a new carbon-components-svelte release

NewReleases is sending notifications on new releases.