{"id":28712735,"url":"https://github.com/flexiui-labs/flexi-toast","last_synced_at":"2026-03-10T02:28:33.690Z","repository":{"id":299127798,"uuid":"1002159005","full_name":"FlexiUI-labs/flexi-toast","owner":"FlexiUI-labs","description":"Lightweight, customizable Angular toast notification component with title, message, icon types, auto-dismiss, manual close, animations, theme and positioning support.","archived":false,"fork":false,"pushed_at":"2025-11-24T10:29:23.000Z","size":154,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-20T23:35:00.162Z","etag":null,"topics":["angular","error","info","success","swal","toast","warning"],"latest_commit_sha":null,"homepage":"https://stackblitz.com/edit/stackblitz-starters-v4bqrm8b?file=src%2Fmain.ts","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FlexiUI-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-06-14T21:00:07.000Z","updated_at":"2025-11-24T10:29:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"795d6ab7-d5e0-4236-aa36-cbd550fe048a","html_url":"https://github.com/FlexiUI-labs/flexi-toast","commit_stats":null,"previous_names":["flexiui-labs/flexi-toast"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/FlexiUI-labs/flexi-toast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlexiUI-labs%2Fflexi-toast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlexiUI-labs%2Fflexi-toast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlexiUI-labs%2Fflexi-toast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlexiUI-labs%2Fflexi-toast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlexiUI-labs","download_url":"https://codeload.github.com/FlexiUI-labs/flexi-toast/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlexiUI-labs%2Fflexi-toast/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30318861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["angular","error","info","success","swal","toast","warning"],"created_at":"2025-06-14T23:43:03.922Z","updated_at":"2026-03-10T02:28:33.643Z","avatar_url":"https://github.com/FlexiUI-labs.png","language":"TypeScript","readme":"# Flexi Toast\n\nLightweight, customizable Angular toast notification component with title, message, icon types, auto-dismiss, manual close, animations, theme and positioning support.\n\n---\n\n## Live Demo\n\n[![Edit in CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://stackblitz.com/edit/stackblitz-starters-v4bqrm8b?file=src%2Fmain.ts)\n\n---\n\n## Features\n\n- 🟢 Success, 🔴 Error, 🔵 Info, 🟠 Warning toasts\n- ⏲️ Configurable timeout \u0026 auto-dismiss\n- 🔢 Multiple stack positions: `top-right`, `bottom-left`, etc.\n- 🎨 Customizable styles \u0026 animations\n- ♿️ ARIA roles \u0026 keyboard support\n- 🔧 Full customization via inputs \u0026 CSS variables\n\n---\n\n## Installation\n\n```bash\nnpm install flexi-toast\n```\n\n---\n\n## Usage\n\n### 1. Import\n\n```ts\nimport { FlexiToastService } from 'flexi-toast';\n\n@Component({\n  ...\n})\nexport class AppComponent {\n  readonly #toast = inject(FlexiToastService);\n```\n---\n\n### 2. Show a Toast\n\n```ts\nimport { ToastService } from 'flexi-toast';\n\n@Component({ /* ... */ })\nexport class AppComponent {\n  readonly #toast = inject(FlexiToastService);\n\n  notify() {\n    this.toast.show('Success','This is a message','success'); //icon =\u003e success | info | warning | error\n  }\n}\n```\n\n---\n\n### 3. Show a Swal\n\n```ts\nimport { ToastService } from 'flexi-toast';\n\n@Component({ /* ... */ })\nexport class AppComponent {\n  readonly #toast = inject(FlexiToastService);\n\n  swal(){\n    this.#toast.showSwal(\"Question?\",\"This is a question?\",\"Yes\",() =\u003e {\n      this.#toast.showToast(\"Info\",\"This is a info message\", \"info\");\n    },\"No\")\n  }\n}\n```\n\n---\n\n## API\n\n| Option                  | Type                                      | Default         | Description                                |\n|-------------------------|-------------------------------------------|-----------------|--------------------------------------------|\n| 'icon'                  | FlexiToastIconType                        | 'success'       | Icon to display on the toast               |\n| 'autoClose'             | boolean                                   | true            | Automatically close the toast after timeout|\n| 'timeOut'               | number                                    | 3000            | Time in milliseconds before auto-close     |\n| 'showProgressBar'       | boolean                                   | true            | Show a progress bar indicator              |\n| 'showToastCloseBtn'     | boolean                                   | true            | Show a close (×) button on the toast       |\n| 'showSwalCloseBtn'      | boolean                                   | false           | Show a close button in SweetAlert dialogs  |\n| 'preventDuplicate'      | boolean                                   | false           | Prevent showing duplicate toasts           |\n| 'position'              | FlexiToastPositionType                    | 'bottom-right'  | Position of the toast container            |\n| 'themeClass'            | FlexiToastThemeClassType | string        | 'light'         | CSS class or theme for toast styling       |\n| 'cancelBtnText'         | string                                    | 'Vazgeç'        | Text for the SweetAlert cancel button      |\n| 'confirmBtnText'        | string                                    | 'Sil'           | Text for the SweetAlert confirm button     |\n| 'swalContentThemeClass' | FlexiSwalContentThemeClass                | 'default'       | CSS class for SweetAlert content styling   |\n\n\n---\n\n## Styling \u0026 CSS Variables\n\nDefine your own colors and styling:\n\n```css\n:root {\n  --toast-bg-success: '#dff0d8';\n  --toast-bg-error:   '#f2dede';\n  --toast-bg-info:    '#d9edf7';\n  --toast-bg-warning: '#fcf8e3';\n  --toast-color:      '#333';\n  --toast-padding:    '12px 16px';\n  --toast-border-radius: '4px';\n}\n```\n\n## License\n\nMIT © Taner Saydam / Flexi UI\n\n\u003e Crafted with ❤ for flexible toast notifications in Angular.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexiui-labs%2Fflexi-toast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexiui-labs%2Fflexi-toast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexiui-labs%2Fflexi-toast/lists"}