0.10
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.
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.