{"id":30856801,"url":"https://github.com/lumexui/blazor-sonner","last_synced_at":"2026-02-03T21:05:59.613Z","repository":{"id":312468289,"uuid":"1045719316","full_name":"LumexUI/blazor-sonner","owner":"LumexUI","description":"An opinionated toast component for Blazor. A port of @emilkowalski's Sonner.","archived":false,"fork":false,"pushed_at":"2026-01-27T20:57:50.000Z","size":1209,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-28T07:42:12.603Z","etag":null,"topics":["blazor","notifications","sonner","toast"],"latest_commit_sha":null,"homepage":"https://sonner.lumexui.org","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LumexUI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"lumexui"}},"created_at":"2025-08-27T15:59:07.000Z","updated_at":"2026-01-27T20:57:13.000Z","dependencies_parsed_at":"2025-12-24T13:09:28.928Z","dependency_job_id":null,"html_url":"https://github.com/LumexUI/blazor-sonner","commit_stats":null,"previous_names":["lumexui/blazor-sonner"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/LumexUI/blazor-sonner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LumexUI%2Fblazor-sonner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LumexUI%2Fblazor-sonner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LumexUI%2Fblazor-sonner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LumexUI%2Fblazor-sonner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LumexUI","download_url":"https://codeload.github.com/LumexUI/blazor-sonner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LumexUI%2Fblazor-sonner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29057119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T20:13:53.544Z","status":"ssl_error","status_checked_at":"2026-02-03T20:13:40.507Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blazor","notifications","sonner","toast"],"created_at":"2025-09-07T12:11:26.153Z","updated_at":"2026-02-03T21:05:59.604Z","avatar_url":"https://github.com/LumexUI.png","language":"CSS","funding_links":["https://github.com/sponsors/lumexui"],"categories":[],"sub_categories":[],"readme":"https://github.com/user-attachments/assets/dc14fa06-aeae-422f-aa8a-b3be1ca540c4\n\n# Sonner for Blazor\n\nAn opinionated toast component for Blazor. A port of Emil Kowalski's [Sonner](https://sonner.emilkowal.ski/).\n\n## Installation\n\n```bash\ndotnet add package Blazor.Sonner\n```\n\nRegister the service in the DI container.\n\n```csharp\nusing Blazor.Sonner.Extensions;\n\n// ...\n\nbuilder.Services.AddSonner();\n```\n\nAdd the styles to the HTML.\n\n```html\n\u003clink href=\"_content/Blazor.Sonner/styles.css\" rel=\"stylesheet\" /\u003e\n```\n\n## Usage\n\nRender the toaster in the root of your app.\n\n```razor\n@using Blazor.Sonner\n@inject ToastService Toast\n\n\u003cToaster /\u003e\n\u003cbutton @onclick=\"@(() =\u003e Toast.Show(\"My first toast\"))\"\u003e\n    Give me a toast\n\u003c/button\u003e\n```\n\n## API Reference _(in progress)_\n\n### ToastService\n\n| Method  | Description |\n| ------------- | -------------- |\n| Show | Displays a default toast with the specified title and optional data. |\n| Success | Displays a success toast with the specified title and optional data. |\n| Warning | Displays a warning toast with the specified title and optional data. |\n| Error | Displays an error toast with the specified title and optional data. |\n| Info | Displays an informational toast with the specified title and optional data. |\n| Async | Displays a toast linked to an asynchronous operation, updating automatically based on its state and result. |\n| RemoveAll | Removes all currently displayed toasts. |\n\n### Toaster (Global settings)\n\n| Parameter  | Description | Type | Default |\n| ------------- | -------------- | ------------- | ------------- |\n| Id | Gets or sets the unique identifier for the toaster instance.  | `string?`  | `-`  |\n| Position | Gets or sets the position on the screen where toasts are displayed. | `ToastPosition`  | `ToastPosition.BottomRight`  |\n| Duration | Gets or sets the duration each toast is displayed before it is automatically dismissed. | `TimeSpan` | `4000` ms |\n| VisibleToasts | Gets or sets the maximum number of visible toasts. | `int` | `3` |\n| Gap | Gets or sets the spacing in pixels between toasts. | `int` | `14` |\n| Offset | Gets or sets the offset from the screen edges. | `Offset` | `-` |\n| MobileOffset | Gets or sets the offset from the screen edges on mobile devices. | `Offset` | `-` |\n| Expand | Gets or sets a value indicating whether toasts should be expanded by default. | `bool` | `false` |\n| CloseButton | Gets or sets a value indicating whether to show a close button on toasts. | `bool` | `false` |\n| RichColors | Gets or sets a value indicating whether to enable rich color styling for toasts. | `bool` | `false` |\n| Dir | Gets or sets the document direction for the toast layout. | `DocumentDirection` | `DocumentDirection.Auto` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumexui%2Fblazor-sonner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flumexui%2Fblazor-sonner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumexui%2Fblazor-sonner/lists"}