{"id":24649059,"url":"https://github.com/angular-material-extensions/select-icon","last_synced_at":"2025-05-13T11:06:17.616Z","repository":{"id":54272869,"uuid":"301533279","full_name":"angular-material-extensions/select-icon","owner":"angular-material-extensions","description":"Angular component that allows to select an option in form of a material design icon button","archived":false,"fork":false,"pushed_at":"2021-02-27T19:05:08.000Z","size":3510,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-01T13:02:03.962Z","etag":null,"topics":["angular","button","icons","img","library","ngx","select"],"latest_commit_sha":null,"homepage":"https://angular-material-extensions.github.io/select-icon/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angular-material-extensions.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-05T20:35:59.000Z","updated_at":"2023-05-31T21:45:50.000Z","dependencies_parsed_at":"2022-08-13T10:40:25.938Z","dependency_job_id":null,"html_url":"https://github.com/angular-material-extensions/select-icon","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Fselect-icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Fselect-icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Fselect-icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Fselect-icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angular-material-extensions","download_url":"https://codeload.github.com/angular-material-extensions/select-icon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253726895,"owners_count":21954095,"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":["angular","button","icons","img","library","ngx","select"],"created_at":"2025-01-25T17:15:32.376Z","updated_at":"2025-05-13T11:06:17.546Z","avatar_url":"https://github.com/angular-material-extensions.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"angular-material-extensions's logo\"\n   height=\"256px\" width=\"256px\" style=\"text-align: center;\" \n   src=\"https://cdn.jsdelivr.net/gh/angular-material-extensions/select-icon@master/assets/angular-material-extensions-logo.svg\"\u003e\n\u003c/p\u003e\n\n# @angular-material-extensions/select-icon - Angular component that allows to select an option in form of a material design icon button\n\n[![npm version](https://badge.fury.io/js/%40angular-material-extensions%2Fselect-icon.svg)](https://badge.fury.io/js/%40angular-material-extensions%2Fselect-icon)\n[![npm demo](https://img.shields.io/badge/demo-online-ed1c46.svg)](https://angular-material-extensions.github.io/select-icon)\n[![docs: typedoc](https://img.shields.io/badge/docs-typedoc-4D0080.svg)](https://angular-material-extensions.github.io/select-icon/doc/index.html)\n[![Join the chat at https://gitter.im/angular-material-extensions/Lobby](https://badges.gitter.im/angular-material-extensions/Lobby.svg)](https://gitter.im/angular-material-extensions/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Build Status](https://travis-ci.org/angular-material-extensions/select-icon.svg?branch=master)](https://travis-ci.org/angular-material-extensions/select-icon)\n[![codecov](https://codecov.io/gh/angular-material-extensions/select-icon/branch/master/graph/badge.svg)](https://codecov.io/gh/angular-material-extensions/select-icon)\n[![dependency Status](https://david-dm.org/angular-material-extensions/select-icon/status.svg)](https://david-dm.org/angular-material-extensions/select-icon)\n[![devDependency Status](https://david-dm.org/angular-material-extensions/select-icon/dev-status.svg?branch=master)](https://david-dm.org/angular-material-extensions/select-icon#info=devDependencies)\n[![Greenkeeper Badge](https://badges.greenkeeper.io/angular-material-extensions/select-icon.svg)](https://greenkeeper.io/)\n[![license](https://img.shields.io/github/license/angular-material-extensions/select-icon.svg?style=flat-square)](https://github.com/angular-material-extensions/select-icon/blob/master/LICENSE)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"@angular-material-extensions/select-icon demonstration\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/angular-material-extensions/select-icon/HEAD/assets/v1.0.0/demo.gif\"\u003e\n\u003c/p\u003e\n\n\n## Built by and for developers :heart:\nDo you have any question or suggestion ? Please do not hesitate to contact us!\nAlternatively, provide a PR | open an appropriate issue [here](https://github.com/angular-material-extensions/select-icon/issues)\n\nIf you like this project, support [angular-material-extensions](https://github.com/angular-material-extensions) \nby starring :star: and sharing it :loudspeaker:\n\n## Table of Contents\n- [Demo](#demo)\n- [Components](#components)\n- [Dependencies](#dependencies)\n- [Installation](#installation)\n- [API](#api)\n- [Usage](#usage)\n- [Run Demo App Locally](#run-demo-app-locally)\n- [Other Angular Libraries](#other-angular-libraries)\n- [Support](#support)\n- [License](#license)\n\n\u003ca name=\"demo\"/\u003e\n\n## [Demo](https://angular-material-extensions.github.io/select-country)\n\nView all the directives and components in action at [https://angular-material-extensions.github.io/select-country](https://angular-material-extensions.github.io/select-country)\n\n\u003ca name=\"components\"/\u003e\n\n## Library's components\n- `\u003cmat-select-icon\u003e` used to display the main component\n\n---\n\n\u003ca name=\"dependencies\"/\u003e\n\n## Dependencies\n* [Angular](https://angular.io) developed and tested with `10.x`\n\n---\n\n\u003ca name=\"installation\"/\u003e\n\n##  [Installation](https://angular-material-extensions.github.io/select-icon/getting-started)\n\n## 1. Install via *ng add*. (Recommended)\n\nIf Angular Material Design is not setup, just run `ng add @angular/material` [learn more](https://material.angular.io/guide/getting-started)\n\nNow add the library via the `angular schematics`\n```shell\nng add @angular-material-extensions/select-icon\n```\n\n## 2. Install via *npm*. (Alternative) \n\nNow install `@angular-material-extensions/select-icon` via:\n```shell\nnpm install --save @angular-material-extensions/select-icon\n```\n\n\n### Import the library\n\nIf you installed the library via angular schematics, you can skip this step\n\n\n```typescript\nimport { MatSelectIconModule } from '@angular-material-extensions/select-icon'; \n\n@NgModule({\n  declarations: [AppComponent, ...],\n  imports: [MatSelectIconModule, ...],  \n  bootstrap: [AppComponent]\n})\nexport class AppModule {\n}\n```\n\nOther modules in your application like for lazy loading import ` MatSelectIconModule ` into your feature module:\n\n\n\u003ca name=\"api\"/\u003e\n\n## API\n\n### `\u003cmat-select-icon\u003e`  used to display the main component - [see the demo examples](https://angular-material-extensions.github.io/select-icon/examples)\n\n| option | bind  |  type  |   default    | description  |\n|:-------------------|:--------:|:------:|:------------:|:-------------------------------------------------------------------------------------------------|    \n| icons      | `Input()`  | `MatSelectIcon[]`    | - |  the icons to display\n| value      | `Input()`  | `MatSelectIcon`    | - |  the selected value\n| onIconSelected  | `Output()` | `EventEmitter\u003cMatSelectIcon\u003e`    | - | emits the selected icon as object (see the interface below)\n\n\n```typescript\ninterface MatSelectIcon {\n  url: string;\n  value?: any;\n  color?: ThemePalette;\n  tags?: string[]; // todo: 10.2020\n}\n```\n\n\n\u003ca name=\"usage\"/\u003e\n\n## [Usage](https://angular-material-extensions.github.io/select-icon)\n\n```html\n\u003cmat-select-icon [icons]=\"icons\" (onIconSelected)=\"onIconSelected($event)\"\u003e\u003c/mat-select-icon\u003e\n```\n\n```typescript\n\nimport { MatSelectIcon } from '@angular-material-extensions/select-icon';\n\n icons: MatSelectIcon[] = [\n    {\n      url: 'assets/icons/countrys-flags/lebanon.svg'\n      // color: 'accent'\n    },\n    {\n      url: 'assets/icons/countrys-flags/germany.svg',\n      color: 'warn'\n    },\n    {\n      url: 'assets/icons/countrys-flags/italy.svg',\n      color: 'primary'\n    },\n    {\n      url: 'assets/icons/countrys-flags/france.svg',\n      color: 'primary'\n    },\n    {\n      url: 'assets/icons/countrys-flags/spain.svg',\n      color: 'accent'\n    },\n    {\n      url: 'assets/icons/countrys-flags/united-kingdom.svg',\n      color: 'accent'\n    }\n  ];\n\n  onIconSelected(selectedIcon: MatSelectIcon) {\n    console.log('selected icon');\n  }\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"@angular-material-extensions/select-icon demonstration\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/angular-material-extensions/select-icon/HEAD/assets/v1.0.0/demo.png\"\u003e\n\u003c/p\u003e\n\n\n#### with reactive forms\n\n```html\n\u003cmat-select-icon [icons]=\"icons\" [formControl]=\"selectIconFC\"\u003e\u003c/mat-select-icon\u003e\n```\n\n```typescript\n\nimport { MatSelectIcon } from '@angular-material-extensions/select-icon';\n\nselectIconFC: FormControl = new FormControl();\n```\n\n\nwith selected value\n\n```html\n\u003cmat-select-icon [icons]=\"icons\" [formControl]=\"selectIconDefault\"\u003e\u003c/mat-select-icon\u003e\n```\n\n```typescript\n\nimport { MatSelectIcon } from '@angular-material-extensions/select-icon';\n\nselectIconDefault: FormControl = new FormControl(this.icons[0]);\n```\n\n\n\n\u003ca name=\"run-demo-app-locally\"/\u003e\n\n###  Run Demo App Locally\n\nBuild the library\n\n```bash\n$ npm run build:lib\n```\n\nServe the demo app\n\n```bash\n$ npm start\n```\n\n\n\n## Other Angular Libraries\n- [ngx-auth-firebaseui](https://github.com/AnthonyNahas/ngx-auth-firebaseui)\n- [ngx-linkifyjs](https://github.com/AnthonyNahas/ngx-linkifyjs)\n- [@angular-material-extensions/password-strength](https://github.com/angular-material-extensions/password-strength)\n- [@angular-material-extensions/google-maps-autocomplete](https://github.com/angular-material-extensions/google-maps-autocomplete)\n- [@angular-material-extensions/link-preview](https://github.com/angular-material-extensions/link-preview)\n- [@angular-material-extensions/fab-menu](https://github.com/angular-material-extensions/fab-menu)\n- [@angular-material-extensions/select-country](https://github.com/angular-material-extensions/select-country)\n- [@angular-material-extensions/pages](https://github.com/angular-material-extensions/pages)\n- [@angular-material-extensions/contacts](https://github.com/angular-material-extensions/contacts)\n---\n\n\u003ca name=\"support\"/\u003e\n\n## Support\n+ Drop an email to: [Anthony Nahas](mailto:anthony.na@hotmail.de)\n+ or open an appropriate [issue](https://github.com/angular-material-extensions/select-icon/issues)\n+ let us chat on [Gitter](https://gitter.im/angular-material-extensions/Lobby)\n \n Built by and for developers :heart: we will help you :punch:\n\n---\n\n![jetbrains logo](https://raw.githubusercontent.com/angular-material-extensions/select-icon/HEAD/assets/jetbrains-variant-4_logos/jetbrains-variant-4.png)\n\nThis project is supported by [jetbrains](https://www.jetbrains.com/) with 1 ALL PRODUCTS PACK OS LICENSE incl. [webstorm](https://www.jetbrains.com/webstorm)\n\n---\n\n\u003ca name=\"license\"/\u003e\n\n## License\n\nCopyright (c) 2020 [Anthony Nahas](https://github.com/AnthonyNahas). Licensed under the MIT License (MIT) \u003cp align=\"center\"\u003e\n                                                                                                            \u003cimg alt=\"angular-material-extensions's logo\"\n                                                                                                             height=\"92px\" width=\"92px\" style=\"text-align: center;\" \n                                                                                                             src=\"https://cdn.jsdelivr.net/gh/angular-material-extensions/select-icon@master/assets/badge_made-in-germany.svg\"\u003e\n                                                                                                          \u003c/p\u003e\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-material-extensions%2Fselect-icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangular-material-extensions%2Fselect-icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-material-extensions%2Fselect-icon/lists"}