{"repo":"ElyasAsmad/svileo","free":true,"listed":false,"github":"https://github.com/ElyasAsmad/svileo","clone":"git clone https://github.com/ElyasAsmad/svileo.git","description":"An opinionated, physics-based toast notification library for Svelte 5 — a port of Sileo.","language":"Svelte","stars":51,"topics":["notification","svelte","sveltekit","toast"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Svileo An opinionated, physics-based toast notification library for Svelte 5 — a port of Sileo (React) by @hiaaryan . Docs Playground Installation Setup Add the Toaster component once, near the root of your app (e.g. in a layout file): Usage Import svileo and call any of its methods from anywhere in your app: API svileo.show(options) Show a toast with an explicit type . svileo.success(options) svileo.error(options) svileo.warning(options) svileo.info(options) svileo.action(options) Convenience methods for each toast state. svileo.promise(promise, options) Shows a loading toast while the promise is pending, then transitions to success, error, or action. The action key can be used instead of success to show an action toast on resolve: svileo.dismiss(id) Dismiss a specific toast by its ID. svileo.clear(position?) Dismiss all toasts, or all toasts at a given position. --- SvileoOptions Prop Type Default Description ------ ------ --------- ------------- title string — Toast heading description string \\ Snippet — Body text or a Svelte Snippet type SvileoState 'success' Toast variant position SvileoPosition Toaster default Where the toast appears duration number \\ null 6000 Auto-dismiss after ms. null = persist icon Snippet \\ null — Custom icon Snippet. null disables the icon styles SvileoStyles — CSS class overrides fill string — Custom background colour roundness number 16 Border radius in px autopilot boolean \\ { expand?: number; collapse?: number } true Automatically expand/coll","default_branch":null,"files":null,"tree":[],"storefront":"/r/ElyasAsmad","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ElyasAsmad/svileo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}