{"id":15022344,"url":"https://github.com/minimalist-components/mn-select","last_synced_at":"2025-10-23T14:31:11.913Z","repository":{"id":57299315,"uuid":"76248258","full_name":"minimalist-components/mn-select","owner":"minimalist-components","description":"A select component to desktop and mobile devices","archived":false,"fork":false,"pushed_at":"2018-12-09T21:25:45.000Z","size":3069,"stargazers_count":5,"open_issues_count":4,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T13:07:33.002Z","etag":null,"topics":["agnostic-to-frameworks","javascript","mn-selects","pure-javascript","webcomponents"],"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/minimalist-components.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":"2016-12-12T10:57:20.000Z","updated_at":"2019-11-14T06:04:01.000Z","dependencies_parsed_at":"2022-08-26T18:02:56.659Z","dependency_job_id":null,"html_url":"https://github.com/minimalist-components/mn-select","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minimalist-components%2Fmn-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minimalist-components%2Fmn-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minimalist-components%2Fmn-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minimalist-components%2Fmn-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minimalist-components","download_url":"https://codeload.github.com/minimalist-components/mn-select/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237843696,"owners_count":19375187,"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":["agnostic-to-frameworks","javascript","mn-selects","pure-javascript","webcomponents"],"created_at":"2024-09-24T19:57:49.279Z","updated_at":"2025-10-23T14:31:11.403Z","avatar_url":"https://github.com/minimalist-components.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/mn-select.svg)](https://badge.fury.io/js/mn-select)\n[![Dependency Status](https://gemnasium.com/badges/github.com/minimalist-components/mn-select.svg)](https://gemnasium.com/github.com/minimalist-components/mn-select)\n[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)\n\n# mn-select\n\nMinimalist select component, agnostic to framworks.\n\nSee the [demo](https://minimalist-components.github.io/mn-select/)\n\n[![preview demo](https://raw.githubusercontent.com/minimalist-components/mn-select/master/preview.gif)](https://minimalist-components.github.io/mn-select/) \n\n### Install\n\n```sh\nnpm install --save mn-select\n```\n\nAnd bundle dependencies and main files in [dist/](https://github.com/minimalist-components/mn-select/tree/master/dist) with your preferred tool.\n\n### Usage\n\njust use the tag `mn-select` and `option`, e.g.\n\n```html\n\u003cmn-select\u003e\n  \u003coption value=\"#fff\"\u003eWhite\u003c/option\u003e\n  \u003coption value=\"#000\"\u003eBlack\u003c/option\u003e\n\u003c/mn-select\u003e\n```\n\nTo begin with an value, you can use the attribute selected in tag option\n\n```html\n\u003cmn-select\u003e\n  \u003coption value=\"#fff\"\u003eWhite\u003c/option\u003e\n  \u003coption value=\"#000\" selected\u003eBlack\u003c/option\u003e\n\u003c/mn-select\u003e\n```\n\nOr just use the attribute value in mn-select\n\n```html\n\u003cmn-select value=\"#fff\"\u003e\n  \u003coption value=\"#fff\"\u003eWhite\u003c/option\u003e\n  \u003coption value=\"#000\"\u003eBlack\u003c/option\u003e\n\u003c/mn-select\u003e\n```\n\nIf you want set the value from javascript, just assign a value to property .value, e.g.\n\n```js\ndocument.querySelector('mn-select').value = '#000'\n```\n\nThe following attributes from image are supported in this `mn-select`\n\n- [value](http://www.w3schools.com/TAgs/att_input_value.asp)\n- [placeholder](http://www.w3schools.com/TAgs/att_input_placeholder.asp)\n- [id](http://www.w3schools.com/tags/att_global_id.asp)\n- [name](http://www.w3schools.com/TAgs/att_input_name.asp)\n\nand in option\n\n- [value](http://www.w3schools.com/TAgs/att_input_value.asp)\n- [selected](http://www.w3schools.com/tags/att_option_selected.asp)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminimalist-components%2Fmn-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminimalist-components%2Fmn-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminimalist-components%2Fmn-select/lists"}