Vehmloewff / svelte-alerter-component

Easily add custom alerts to your svelte app
MIT License
3 stars 0 forks source link

Missing commas in code example in the README #1

Closed sorrat closed 5 years ago

sorrat commented 5 years ago

Fixed:

new Alerter({
    title: "Like this alert?",  // or a svelte component instance
    style: "background: green; border-radius: 1px;",  // Optional.  You can also style alerts with this css selector: .svelte-alerter-component.alert
    time: 3000,  // Alert will disapear in 3 seconds.  If no value is specified, the alert will not disapear automaticly
    undo: () => {console.log("Undone!")},  // If a value is specified, an undo button will apear on the alert.  You can style this button with .svelte-alerter-component.undo
}, () => {
    console.log("Alert has been removed!");
})
Vehmloewff commented 5 years ago

Thanks!