Skip to content

0.10

Compare
Choose a tag to compare
@nandorojo nandorojo released this 03 Mar 21:23
· 53 commits to master since this release

New Features

preset: 'custom'

When you set preset: 'custom' on alert or toast, you can now add a custom icon with the icon.ios field.

Burnt.toast({
  title: "This toast has more text, and it also has a custom icon.",
  preset: "custom",
  icon: {
    ios: {
      name: "circle",
      color: "#F7A51D",
    },
  },
});

For a full catalog of icons, see Apple's SF Symbols.

Improved Types

When choosing a custom iOS icon, you'll get autocomplete.

Screenshot 2023-03-03 at 4 15 11 PM

Type suggestions for SF symbols provided by sf-symbols-typescript.

preset: 'none'

If you set preset: 'none', you can hide the icon altogether.

More text

You can now add 2 lines of text to the Burnt.toast. The message field is also optional now to make room for a longer title.

Thanks to @alantoa for contributing at #12