{"id":13808162,"url":"https://github.com/tossnet/Blazor-Color-Picker","last_synced_at":"2025-05-14T02:31:18.684Z","repository":{"id":37496163,"uuid":"266345489","full_name":"tossnet/Blazor-Color-Picker","owner":"tossnet","description":"Opens a palette with the Material colors for Blazor application","archived":false,"fork":false,"pushed_at":"2024-03-31T06:55:37.000Z","size":9848,"stargazers_count":33,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-13T03:14:46.990Z","etag":null,"topics":["blazor","blazor-application","blazor-client","blazor-color-picker","blazor-component","blazor-server","blazor-webassembly","color-picker","material-colors","nuget","palette"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tossnet.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}},"created_at":"2020-05-23T13:47:06.000Z","updated_at":"2024-11-10T17:11:32.000Z","dependencies_parsed_at":"2024-04-10T05:38:44.270Z","dependency_job_id":"743ada01-12de-4181-bad0-a4388887eccb","html_url":"https://github.com/tossnet/Blazor-Color-Picker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tossnet%2FBlazor-Color-Picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tossnet%2FBlazor-Color-Picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tossnet%2FBlazor-Color-Picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tossnet%2FBlazor-Color-Picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tossnet","download_url":"https://codeload.github.com/tossnet/Blazor-Color-Picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224815646,"owners_count":17374676,"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","blazor-application","blazor-client","blazor-color-picker","blazor-component","blazor-server","blazor-webassembly","color-picker","material-colors","nuget","palette"],"created_at":"2024-08-04T01:01:36.417Z","updated_at":"2024-11-19T00:30:35.440Z","avatar_url":"https://github.com/tossnet.png","language":"C#","funding_links":[],"categories":["Libraries \u0026 Extensions"],"sub_categories":["Tools \u0026 Utilities"],"readme":"﻿# Blazor-Color-Picker\n[![NuGet](https://img.shields.io/nuget/v/BlazorColorPicker.svg)](https://www.nuget.org/packages/BlazorColorPicker/) ![BlazorColorPicker Nuget Package](https://img.shields.io/nuget/dt/BlazorColorPicker)\n\nSometimes HTML5 colorpicker doesn't suit me for an application. I prefer to offer the user a predefined color palette\n\nDEMO : https://tossnet.github.io/Blazor-Color-Picker/\n\nOpens a palette with the Material colors\n\n![Blazor Color Picker](https://github.com/tossnet/Blazor-Color-Picker/blob/master/BlazorColorPicker.gif)\n\n\n# Installation\nLatest version in here: [![NuGet](https://img.shields.io/nuget/v/BlazorColorPicker.svg)](https://www.nuget.org/packages/BlazorColorPicker/)\n\nTo Install\n\n```\nInstall-Package BlazorColorPicker\n```\nor\n```\ndotnet add package BlazorColorPicker\n```\nFor client-side and server-side Blazor - add script section to index.html or _Host.cshtml (head section)\n\n```html\n\u003clink href=\"_content/BlazorColorPicker/colorpicker.css\" rel=\"stylesheet\" /\u003e\n```\n\n## Usage\n\n```html\n@page \"/\"\n@using BlazorColorPicker\n\n\u003ch1\u003eHello, world!\u003c/h1\u003e\n\n\u003cbutton class=\"btn btn-primary\" @onclick=\"OpenModal\"\u003e\n    \u003cdiv style=\"background-color:@color\" class=\"buttonColor\"\u003e\u003c/div\u003e Select a Color\n\u003c/button\u003e\n\n\u003cColorPicker Title=\"My Blazor ColorPicker\" IsOpened=\"isOpened\" Closed=\"ClosedEvent\" MyColor=\"@color\"\u003e\n\u003c/ColorPicker\u003e\n\n@code {\n    bool isOpened = false;\n    string color = \"#F1F7E9\";\n\n    void OpenModal()\n    {\n        isOpened = true;\n    }\n\n    void ClosedEvent(string value)\n    {\n        color = value;\n        isOpened = false;\n    }\n}\n```\n\n## \u003ca name=\"ReleaseNotes\"\u003e\u003c/a\u003eRelease Notes\n\n\u003cdetails open=\"open\"\u003e\u003csummary\u003eVersion 3.1.0\u003c/summary\u003e\n    \n\u003e- you can customise the size of the palette using your CSS styles\n\u003e- A red colour of the first column was not correct\n\u003e- Re-addition of .NET7 compatibility\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eVersion 2.2.0\u003c/summary\u003e\n    \n\u003e- Remove the internal use of IJSRuntime\n\u003c/details\u003e\n\n## ⚠️ Breaking changes ⚠️\n\n\u003cdetails\u003e\u003csummary\u003eVersion 2.1.0\u003c/summary\u003e\n    \n\u003e- no need to declare the _content/BlazorColorPicker/colorpicker.js file\n\u003c/details\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftossnet%2FBlazor-Color-Picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftossnet%2FBlazor-Color-Picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftossnet%2FBlazor-Color-Picker/lists"}