• Stars
    star
    826
  • Rank 55,195 (Top 2 %)
  • Language Svelte
  • License
    MIT License
  • Created over 2 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿž๐Ÿฅ‚ Buttery smooth toast notifications for Svelte

Website ยทย NPM Package

svelte-french-toast

Buttery smooth Svelte notifications.

svelte-french-toast is a Svelte port of Timo Linsโ€™s react-hot-toast, a lightweight, customizable, and beautiful-by-default toast notification library.

Installation

Install the package with your favorite package manager:

npm install svelte-french-toast
pnpm install svelte-french-toast
yarn add svelte-french-toast

Basic usage

Mount a <Toaster /> at the top level of your app and use the toast API to display toasts.

<script>
import toast, {Toaster} from 'svelte-french-toast'

function handleClick() {
    toast.success('Hello, world!')
}
</script>

<Toaster />
<button type="button" on:click={handleClick}>Toast</button>

For more usage examples, see the website.

Thanks

Thanks to the original author of React Hot Toast and its contributors.

MIT License

Copyright (c) 2020 Timo Lins

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

More Repositories

1

flapioca

A Flappy Bird-inspired terminal game written in Go.
Go
68
star
2

fu

Unix's Find, Unleashed.
Go
33
star
3

scroller

A robust yet simple utility for truncating text by rolling it like a news ticker
Python
27
star
4

aech

โšก๏ธ CSS starter kit built for Rucksack, an open newsletter platform.
CSS
16
star
5

minty

A refreshingly simple way to work.
JavaScript
15
star
6

roller

โ†”๏ธ A text truncation utility for your window manager, written in Rust.
Rust
13
star
7

mebut.online

โœจ A collection of minimalist, original personal websites with great typography.
Pug
12
star
8

rucksack

๐ŸŽ’ Rucksack is an open-source alternative to Substack.
Ruby
7
star
9

wayfer

๐Ÿ”ผ Simple, cross-platform WiFi file transfer app. Just drop a file and scan the code.
JavaScript
5
star
10

lhtm

Sexped up HTML.
TypeScript
4
star
11

walnut

๐Ÿคฏ Brainfuck to Go compiler with some optimizations
Go
4
star
12

website

๐ŸŒ My corner of the Internet.
Pug
4
star
13

fetch

A simple HTTP GET utility in Go
Go
3
star
14

dotfiles

My Linux desktop configuration files
Emacs Lisp
2
star
15

isnochys-syntax

"In space, no one can hear you scream." High contrast syntax theme for Atom.
CSS
2
star
16

xkcd-password-rb

A password generator inspired by xkcd comics, in Ruby.
Ruby
1
star
17

php

PHP boilerplate
PHP
1
star
18

blog

CSS
1
star
19

pixelarity

HTML
1
star
20

quizzes

A list of quizzes I've created or contributed to
1
star
21

cshale

Toy shell in C
C
1
star
22

finale

Web app for hosting the final round of a quiz
JavaScript
1
star
23

shale-theme

A Fish shell theme inspired by Clearance
Shell
1
star
24

fuzzy

A Go library for fuzzy matching text.
Go
1
star
25

kbrgl.github.io

Kabir's website
JavaScript
1
star