Skip to content

Commit

Permalink
Merge pull request #17 from SorenHolstHansen/styling
Browse files Browse the repository at this point in the history
Styling and example
  • Loading branch information
SorenHolstHansen authored Feb 6, 2024
2 parents d08c741 + d8e4b73 commit 3634f5a
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 250 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Example](assets/example.gif)

# leptos_toaster

A Toaster component for Leptos heavily inspired by [sonner](https://sonner.emilkowal.ski/)
Expand Down
Binary file added assets/example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions examples/basic/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use leptos::*;
use leptos_toaster::{
Toast, ToastId, ToastOptions, ToastVariant, Toaster, ToasterPosition, Toasts,
Theme, Toast, ToastId, ToastOptions, ToastVariant, Toaster, ToasterPosition, Toasts,
};

fn main() {
Expand Down Expand Up @@ -28,8 +28,9 @@ fn Page() -> impl IntoView {
view! {
<Toast
toast_id
variant=ToastVariant::Info
variant=ToastVariant::Success
title=view! { "My toast" }.into_view()
description=Some(view! {"My description"}.into_view())
/>
},
Some(toast_id),
Expand Down
Loading

0 comments on commit 3634f5a

Please sign in to comment.