{"id":15011539,"url":"https://github.com/nich2408/blazor.simplemodal","last_synced_at":"2025-07-24T16:33:18.126Z","repository":{"id":240097826,"uuid":"801629823","full_name":"nich2408/Blazor.SimpleModal","owner":"nich2408","description":"Blazor class library for modal display and interaction with simplicity in mind.","archived":false,"fork":false,"pushed_at":"2024-05-24T14:29:51.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T09:26:49.794Z","etag":null,"topics":["blazor","library","modal","nuget"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/nich2408.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-16T15:49:11.000Z","updated_at":"2024-05-24T14:29:21.000Z","dependencies_parsed_at":"2024-09-20T06:00:32.987Z","dependency_job_id":null,"html_url":"https://github.com/nich2408/Blazor.SimpleModal","commit_stats":{"total_commits":30,"total_committers":2,"mean_commits":15.0,"dds":"0.30000000000000004","last_synced_commit":"1eb9d270636193e3d842e03a40c7a7991b37f682"},"previous_names":["nich2408/blazor.simplemodal"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nich2408%2FBlazor.SimpleModal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nich2408%2FBlazor.SimpleModal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nich2408%2FBlazor.SimpleModal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nich2408%2FBlazor.SimpleModal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nich2408","download_url":"https://codeload.github.com/nich2408/Blazor.SimpleModal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244576403,"owners_count":20475105,"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","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","library","modal","nuget"],"created_at":"2024-09-24T19:41:13.555Z","updated_at":"2025-03-20T08:24:43.599Z","avatar_url":"https://github.com/nich2408.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://github.com/nich2408/Blazor.SimpleModal/assets/98348348/4172379e-ae98-4fba-8591-d9247ebdfbf9)\n\n# Blazor.SimpleModal\n\nBlazor class library for modal display and interaction with simplicity in mind.\n\n## Getting started\n\n### Add the package\nInstall the package in your project with the dotnet CLI:\n\n`dotnet add package nich2408.Blazor.SimpleModal`\n\nor with the Package Manager Console:\n`Install-Package nich2408.Blazor.SimpleModal`\n\n### Add script tags\nAdd these script tags in your `App.razor` or `index.html`\n```html\n\u003cscript src=\"_content/nich2408.Blazor.SimpleModal/modals.js\" type=\"module\"\u003e\u003c/script\u003e\n\u003cscript src=\"_content/nich2408.Blazor.SimpleModal/bootstrap-5.1.3.min.js\"\u003e\u003c/script\u003e\n```\n\n\u003e :warning: If you are already using boostrap JS script in your project, you can skip adding `\u003cscript src=\"_content/nich2408.Blazor.SimpleModal/bootstrap-5.1.3.min.js\"\u003e\u003c/script\u003e`\n\nBe sure to clean and rebuild the project if you are using Visual Studio and also clean the browser cache if the files are not appearing as sources.\n\n## Usage\n\n### Declaring a modal\nExample.razor\n```razor\n@using Blazor.SimpleModal\n\n\u003cSimpleModal\n  @ref=\"mySimpleModal\"\n  Title=\"This is the title\"\n  EnableConfirmButton=\"true\"\n  EnableDismissButton=\"true\"\n  DismissOnOutsideClick=\"true\"\n  DismissOnEscapeKey=\"true\"\u003e\n    Place here the content!\n\u003c/SimpleModal\u003e\n\n@code {\n  // Use this field for holding a reference to the modal.\n  private SimpleModal mySimpleModal;\n\n  // code omitted for brevity\n  [...]\n}\n```\n\n### Displaying the modal\n```csharp\nbool confirmed = await mySimpleModal.ShowAsync();\n```\n\nor\n\n```csharp\nawait mySimpleModal.ShowAsync();\n```\n\nScreenshot:\n\n![image](https://github.com/nich2408/Blazor.SimpleModal/assets/98348348/262ae2df-0f5c-4fad-9ad0-1952573d521d)\n\n\n## Additional documentation\nYou can change the style of modal including custom buttons CSS classes and texts by changing the related properties of the `SimpleModal` component.\n\n## Feedback\nIf you want to leave feedback (bugs or discussion) you can open an issue.\n\n## Contributing\nCurrently the project is not planned to be opened to contribution inside this repository.\n\n## Credits\n- Bootstrap modals: https://getbootstrap.com/docs/5.3/components/modal/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnich2408%2Fblazor.simplemodal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnich2408%2Fblazor.simplemodal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnich2408%2Fblazor.simplemodal/lists"}