{"id":24271674,"url":"https://github.com/soenneker/soenneker.blazor.tomselect","last_synced_at":"2026-05-13T07:13:08.185Z","repository":{"id":226112373,"uuid":"765935809","full_name":"soenneker/soenneker.blazor.tomselect","owner":"soenneker","description":"A Blazor interop library for the select user control library, Tom Select","archived":false,"fork":false,"pushed_at":"2026-03-05T03:24:31.000Z","size":5213,"stargazers_count":8,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-05T04:32:07.546Z","etag":null,"topics":["blazor","csharp","dotnet","input","interop","select","tom","tom-select","tomselect"],"latest_commit_sha":null,"homepage":"https://soenneker.com","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/soenneker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","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":"soenneker","thanks_dev":"soenneker"}},"created_at":"2024-03-01T23:03:05.000Z","updated_at":"2026-03-05T03:22:24.000Z","dependencies_parsed_at":"2024-04-27T20:27:00.323Z","dependency_job_id":"b4a5a137-00cd-4ff6-b5a6-fbfbad8008fe","html_url":"https://github.com/soenneker/soenneker.blazor.tomselect","commit_stats":null,"previous_names":["soenneker/soenneker.blazor.tomselect"],"tags_count":320,"template":false,"template_full_name":null,"purl":"pkg:github/soenneker/soenneker.blazor.tomselect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.tomselect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.tomselect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.tomselect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.tomselect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soenneker","download_url":"https://codeload.github.com/soenneker/soenneker.blazor.tomselect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.tomselect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30204446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"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":["blazor","csharp","dotnet","input","interop","select","tom","tom-select","tomselect"],"created_at":"2025-01-15T17:59:14.556Z","updated_at":"2026-04-01T23:55:37.172Z","avatar_url":"https://github.com/soenneker.png","language":"HTML","funding_links":["https://github.com/sponsors/soenneker","https://thanks.dev/soenneker"],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/nuget/v/soenneker.blazor.tomselect.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.blazor.tomselect/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.blazor.tomselect/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.blazor.tomselect/actions/workflows/publish-package.yml)\n[![](https://img.shields.io/nuget/dt/soenneker.blazor.tomselect.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.blazor.tomselect/)\n[![](https://img.shields.io/badge/Demo-Live-blueviolet?style=for-the-badge\u0026logo=github)](https://soenneker.github.io/soenneker.blazor.tomselect)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.blazor.tomselect/codeql.yml?label=CodeQL\u0026style=for-the-badge)](https://github.com/soenneker/soenneker.blazor.tomselect/actions/workflows/codeql.yml)\n\n# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.Blazor.TomSelect\n### A Blazor interop library for the select user control library, Tom Select\n\nThis library simplifies the integration of Tom Select into Blazor applications, providing access to options, methods, plugins, and events. A demo project showcasing common usages is included.\n\nDiligence was taken to align the Blazor API with JS. Refer to the [Tom Select documentation](https://tom-select.js.org/) for details.\n\n## Installation\n\n```\ndotnet add package Soenneker.Blazor.TomSelect\n```\n\n### Add the following to your `Startup.cs` file\n\n```csharp\npublic void ConfigureServices(IServiceCollection services)\n{\n    services.AddTomSelectInteropAsScoped();\n}\n```\n\n## Usage\n\n```razor\n@using Soenneker.Blazor.TomSelect\n\n\u003cTomSelect\n    TItem=\"Country\" \n    TType=\"string\" \n    OnItemAdd=\"OnItemAdd\"\n    Data=\"@_countries\"\n    TextField=\"@(item =\u003e item.Name)\"\n    ValueField=\"@(item =\u003e item.Id.ToString())\" \n    @ref=\"_tomSelect\"\n    Configuration=\"@_configuration\"\n    @bind-Items=\"_selectedCountries\"\u003e // Supports two-way binding\n\u003c/TomSelect\u003e\n\n@code{\n    private TomSelect\u003cCountry, string\u003e _tomSelect = default!;\n\n    private List\u003cCountry\u003e? _selectedCountries = [];\n    private List\u003cCountry\u003e? _countries;\n\n    private readonly TomSelectConfiguration _configuration = new()\n    {\n        Plugins = [TomSelectPluginType.DragDrop]\n    };\n\n    protected override async Task OnInitializedAsync()\n    {\n        _countries = await Http.GetFromJsonAsync\u003cList\u003cCountry\u003e\u003e(\"sample-data/countries.json\");\n    }\n\n    private void OnItemAdd((string str, TomSelectOption obj) result)\n    {\n        Logger.LogInformation(\"OnItemAdd fired: Value: {value}\", str);\n    }\n\n    private void LogSelectedItems()\n    {\n        foreach (Country item in _selectedCountries)\n        {\n            Logger.LogInformation(\"Selected item: {0}\", item.Name);\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.tomselect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.tomselect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.tomselect/lists"}