{"id":18293706,"url":"https://github.com/museui/muse-ui-toast","last_synced_at":"2025-07-23T15:32:26.048Z","repository":{"id":57305542,"uuid":"137435076","full_name":"museui/muse-ui-toast","owner":"museui","description":"toast plugin base on muse-ui","archived":false,"fork":false,"pushed_at":"2018-06-29T09:56:47.000Z","size":80,"stargazers_count":11,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T11:34:25.309Z","etag":null,"topics":["muse-ui","vue","vue-component","vuejs2"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/museui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-15T03:07:23.000Z","updated_at":"2020-02-03T17:47:38.000Z","dependencies_parsed_at":"2022-08-27T02:57:53.018Z","dependency_job_id":null,"html_url":"https://github.com/museui/muse-ui-toast","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/museui/muse-ui-toast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/museui%2Fmuse-ui-toast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/museui%2Fmuse-ui-toast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/museui%2Fmuse-ui-toast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/museui%2Fmuse-ui-toast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/museui","download_url":"https://codeload.github.com/museui/muse-ui-toast/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/museui%2Fmuse-ui-toast/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266703979,"owners_count":23971390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["muse-ui","vue","vue-component","vuejs2"],"created_at":"2024-11-05T14:25:49.130Z","updated_at":"2025-07-23T15:32:25.948Z","avatar_url":"https://github.com/museui.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Muse-UI-Toast\n\nMuse-UI plugin toast\n\n\u003ca href=\"https://travis-ci.org/museui/muse-ui-toast\"\u003e\n  \u003cimg src=\"https://img.shields.io/travis/museui/muse-ui-toast.svg\" alt=\"travis ci badge\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.org/package/muse-ui-toast\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/muse-ui-toast.svg\" alt=\"Downloads\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://npmjs.org/package/muse-ui-toast\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/muse-ui-toast.svg\" alt=\"Downloads\"\u003e\n\u003c/a\u003e\n\n## Installation\n\n```bash\nnpm install muse-ui-toast -S\n// or\nyarn add muse-ui-toast\n```\n\n## CDN\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/muse-ui-loading/dist/muse-ui-toast.all.css\"/\u003e\n\u003cscript src=\"https://unpkg.com/muse-ui-toast/dist/muse-ui-toast.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```javascript\nimport Vue from 'vue'\nimport MuseUIToast from 'muse-ui-toast';\n\nVue.use(MuseUIToast);\n\nnew Vue({\n  methods: {\n    toast () {\n      this.$toast.message('hello world');\n      this.$toast.success('hello world');\n      this.$toast.info('hello world');\n      this.$toast.warning('hello world');\n      this.$toast.error('hello world');\n    }\n  }\n});\n\n// Or\nMuseUIToast.message('hello world');\nMuseUIToast.success('hello world');\nMuseUIToast.info('hello world');\nMuseUIToast.warning('hello world');\nMuseUIToast.error('hello world');\n```\n\n## API\n\n### config\n\n`Vue.use(MuseUIToast, config)` change default config\n\n```javascript\nexport default {\n  position: 'bottom',               // position\n  time: 2000,                       // show time length\n  closeIcon: 'close',               // close icon\n  close: true,                      // show close button\n  successIcon: 'check_circle',      // success icon\n  infoIcon: 'info',                 // info icon\n  warningIcon: 'priority_high',     // warning icon\n  errorIcon: 'warning'              // error icon\n};\n```\n\n### config (config\u003cObject\u003e)\n\nChange default config, Will return new config;\n\n### message(options\u003cString/Object\u003e)\n\nShow default message, Will return `id`;\n\n### success(options\u003cString/Object\u003e)\n\nShow default success message, Will return `id`;\n\n### info(options\u003cString/Object\u003e)\n\nShow default info message, Will return `id`;\n\n### error(options\u003cString/Object\u003e)\n\nShow default error message, Will return `id`;\n\n### warning(options\u003cString/Object\u003e)\n\nShow default warning message, Will return `id`;\n\n### options\n\n| Name | Description | Type | Accepted Values | Default |\n|------|-------------|------|-----------------|---------|\n| message | show message content | String | — | — |\n| time | show time length | Number | — | 2000 |\n| position | show position | String | top / top-start / top-end / bottom / bottom-start / bottom-end | bottom |\n| close | Whether the show close button | Boolean | — | true |\n| icon | left icon | String | — | — |\n| actions | action buttons,  | Array, [{ action: '', click: (id) =\u003e {} }] | — | — |\n| color | color | String | — | — |\n| textColor | message text color | String | — | — |\n\n### close (id)\n\nclose message\n\n\n## Dependencies Muse-UI Components\n\n* `mu-snackbar`\n* `mu-button`\n* `mu-icon`\n\n## Licence\n\nmuse-ui-toast is open source and released under the MIT Licence.\n\nCopyright (c) 2018 myron\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuseui%2Fmuse-ui-toast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuseui%2Fmuse-ui-toast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuseui%2Fmuse-ui-toast/lists"}