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

4 hours ago

What's Changed

⚠ BREAKING CHANGES

  • progress-step: remove one-update delay for complete prop by @metonym in (#2368)

Features

Bug Fixes


New NotificationQueue component

Control toast notifications using an imperative API. See Documentation.

<script>
  import { Button, NotificationQueue } from "carbon-components-svelte";

  let queue;
</script>

<NotificationQueue bind:this={queue} />

<Button
  on:click={() => {
    queue.add({
      kind: "success",
      title: "Success",
      subtitle: "Your changes have been saved.",
      timeout: 3000,
    });
  }}
>
  Show success
</Button>
<Button
  on:click={() => {
    queue.clear();
  }}
>
  Clear all
</Button>

New SelectableTileGroup component

Similar to TileGroup for radio tiles, the new SelectableTileGroup component abstracts state management for multi-selectable tiles. See Documentation.

<script>
  import {  SelectableTileGroup, SelectableTile } from "carbon-components-svelte";
</script>

<SelectableTileGroup
  legend="Select options"
  name="options"
  selected={["option1", "option2"]}
>
  <SelectableTile value="option1">Option 1</SelectableTile>
  <SelectableTile value="option2">Option 2</SelectableTile>
  <SelectableTile value="option3">Option 3</SelectableTile>
</SelectableTileGroup>

Full Changelog: v0.93.0...v0.94.0

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

NewReleases is sending notifications on new releases.