{"id":24910497,"url":"https://github.com/angular-material-extensions/fab-menu","last_synced_at":"2025-06-26T18:32:49.440Z","repository":{"id":40290257,"uuid":"234062846","full_name":"angular-material-extensions/fab-menu","owner":"angular-material-extensions","description":"Angular Component that represents a menu of buttons triggered by a floating action button | built with material design ","archived":false,"fork":false,"pushed_at":"2023-03-31T10:39:31.000Z","size":7910,"stargazers_count":48,"open_issues_count":12,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-28T12:05:19.853Z","etag":null,"topics":["angular","animations","fab","fab-menu","library","material","material-design"],"latest_commit_sha":null,"homepage":"https://angular-material-extensions.github.io/fab-menu/","language":"TypeScript","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/angular-material-extensions.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"angular-material-extensions","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/@angular-material-extensions/fab-menu","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://github.com/AnthonyNahas","anahas.de"]}},"created_at":"2020-01-15T11:12:15.000Z","updated_at":"2024-07-07T16:57:03.000Z","dependencies_parsed_at":"2024-06-18T20:12:20.464Z","dependency_job_id":null,"html_url":"https://github.com/angular-material-extensions/fab-menu","commit_stats":{"total_commits":130,"total_committers":4,"mean_commits":32.5,"dds":"0.023076923076923106","last_synced_commit":"8c5f1bbeb224c791898c03c1bd8f77ec8b2b246a"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/angular-material-extensions/fab-menu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Ffab-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Ffab-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Ffab-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Ffab-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angular-material-extensions","download_url":"https://codeload.github.com/angular-material-extensions/fab-menu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Ffab-menu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262123004,"owners_count":23262513,"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","animations","fab","fab-menu","library","material","material-design"],"created_at":"2025-02-02T03:36:42.667Z","updated_at":"2025-06-26T18:32:49.387Z","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/fab-menu@master/assets/angular-material-extensions-logo.svg\"\u003e\n\u003c/p\u003e\n\n# @angular-material-extensions/fab-menu - Angular Material component that allow users to select a country or nationality with an autocomplete feature \n\n[![npm version](https://badge.fury.io/js/%40angular-material-extensions%2Ffab-menu.svg)](https://badge.fury.io/js/%40angular-material-extensions%2Ffab-menu)\n[![npm demo](https://img.shields.io/badge/demo-online-ed1c46.svg)](https://angular-material-extensions.github.io/fab-menu)\n[![docs: typedoc](https://img.shields.io/badge/docs-typedoc-4D0080.svg)](https://angular-material-extensions.github.io/fab-menu/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/fab-menu.svg?branch=master)](https://travis-ci.org/angular-material-extensions/fab-menu)\n[![codecov](https://codecov.io/gh/angular-material-extensions/fab-menu/branch/master/graph/badge.svg)](https://codecov.io/gh/angular-material-extensions/fab-menu)\n[![license](https://img.shields.io/github/license/angular-material-extensions/fab-menu.svg?style=flat-square)](https://github.com/angular-material-extensions/fab-menu/blob/master/LICENSE)\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"@angular-material-extensions/fab-menu demonstration\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/angular-material-extensions/fab-menu/HEAD/assets/v1/ex1.gif\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"@angular-material-extensions/fab-menu demonstration\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/angular-material-extensions/fab-menu/HEAD/assets/v1/ex2.gif\"\u003e\n\u003c/p\u003e\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/fab-menu/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/fab-menu)\n\nView all the directives and components in action at [https://angular-material-extensions.github.io/fab-menu](https://angular-material-extensions.github.io/fab-menu)\n\n\u003ca name=\"components\"/\u003e\n\n## Library's components\n- `\u003cmat-fab-menu\u003e` used to display the main component\n\n\n---\n\n\u003ca name=\"dependencies\"/\u003e\n\n## Dependencies\n* [Angular](https://angular.io) \n\n---\n\n\u003ca name=\"installation\"/\u003e\n\n##  [Installation](https://angular-material-extensions.github.io/fab-menu/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/fab-menu\n```\n\n## 2. Install via *npm*. (Alternative)\n\nNow install `@angular-material-extensions/fab-menu` via:\n```shell\nnpm install --save @angular-material-extensions/fab-menu\n```\n\n\n### Import the library\n\nIf you installed the library via angular schematics, you can skip this step\n\nOnce installed you need to import the main module:\n```js\nimport { MatFabMenuModule } from '@angular-material-extensions/fab-menu';\n```\n\n```typescript\nimport { MatFabMenuModule } from '@angular-material-extensions/fab-menu';\n\n@NgModule({\n  declarations: [AppComponent, ...],\n  imports: [MatFabMenuModule, ...],  \n  bootstrap: [AppComponent]\n})\nexport class AppModule {\n}\n```\n\nOther modules in your application like for lazy loading import ` MatSelectCountryModule ` into your feature module:\n\n\n\u003ca name=\"api\"/\u003e\n\n## API\n\n### `\u003cmat-fab-menu\u003e`  used to display the main component - [see the demo examples](https://angular-material-extensions.github.io/fab-menu/examples)\n### `\u003cmat-mini-fab-menu\u003e`  used to display a mini version of the fab menu - [see the demo examples](https://angular-material-extensions.github.io/fab-menu/examples)\n\n| option | bind  |  type  |   default    | description  |\n|:-------------------|:--------:|:------:|:------------:|:-------------------------------------------------------------------------------------------------|    \n| fabButtons      | `Input()`  | `MatFabMenu[]`    | - |  array of floating actions button as menu to render\n| icon      | `Input()`  | `string`    | `add` |  material icon string e.g: home, mail, phone [see more](https://material.io/resources/icons/?style=baseline)\n| direction      | `Input()`  | `MatFabMenuDirection`    | `top` |  the direction of buttons: `'top' | 'bottom' | 'left' | 'right';`\n| color      | `Input()`  | `ThemePalette`    | `accent` |  the color of the main fab: primary, accent or warn\n| isActive      | `Input()`  | `boolean`    | `false` |  Whether the component is active\n| disabled      | `Input()`  | `boolean`    | `false` |  Whether the component is disabled\n| closeAfterSelection      | `Input()`  | `boolean`    | `true` | Close after selecting a fab menu item\n| onFabMenuItemSelected  | `Output()` | `EventEmitter\u003cstring \\| number\u003e`    | - | emits the selected button by id\n\n### Methods\n\n```typescript\n@ViewChild('matFabMenu', { static: false }) matFabMenu: MatFabMenu;\n```\n\n`toggle()` will toggle the `isActive` property\n\nImportant interfaces or type\n\n```typescript\n\nimport {ThemePalette, TooltipPosition} from '@angular/material';\n\ninterface MatFabMenu {\n  id: string | number;\n  icon?: string; // please use either icon or imgUrl\n  iconColor?: ThemePalette;\n  imgUrl?: string; // please use either icon or imgUrl\n  tooltip?: string;\n  tooltipPosition?: TooltipPosition;\n  color?: ThemePalette;\n}\n\ntype MatFabMenuDirection = 'top' | 'bottom' | 'left' | 'right';\n```\n\n\n\u003ca name=\"usage\"/\u003e\n\n## [Usage](https://angular-material-extensions.github.io/fab-menu)\n\n```html\n\u003cmat-fab-menu color=\"primary\"\n              [fabButtons]=\"fabButtonsRandom\"\u003e\n\u003c/mat-fab-menu\u003e\n\n\u003c!-- or if you prefer the mini version --\u003e\n\n\u003cmat-mini-fab-menu color=\"primary\"\n                   [fabButtons]=\"fabButtonsRandom\"\u003e\n\u003c/mat-mini-fab-menu\u003e\n\n```\n\n```typescript\nimport {MatFabMenu} from '@angular-material-extensions/fab-menu';\n\nfabButtonsRandom: MatFabMenu[] = [\n    {\n      id: 1,\n      icon: 'create'\n    },\n    {\n      id: 2,\n      icon: 'mail'\n    },\n    {\n      id: 3,\n      icon: 'file_copy'\n    },\n    {\n      id: 4,\n      icon: 'phone'\n    },\n  ];\n```\n\ntry to use your own svg instead of material icons:\n\n```typescript\nimport {MatFabMenu} from '@angular-material-extensions/fab-menu';\n\nfabCountries: MatFabMenu[] = [\n    {\n      id: 1,\n      imgUrl: 'assets/countrys-flags/svg/canada.svg'\n    },\n    {\n      id: 2,\n      imgUrl: 'assets/countrys-flags/svg/germany.svg'\n    },\n    {\n      id: 3,\n      imgUrl: 'assets/countrys-flags/svg/france.svg'\n    },\n    {\n      id: 4,\n      imgUrl: 'assets/countrys-flags/svg/lebanon.svg'\n    },\n  ];\n```\n\n```html\n\u003cmat-fab-menu color=\"primary\"\n              [fabButtons]=\"fabButtonsRandom\"\u003e\n\u003c/mat-fab-menu\u003e\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"@angular-material-extensions/fab-menu demonstration\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/angular-material-extensions/fab-menu/HEAD/assets/v1/top.png\"\u003e\n\u003c/p\u003e\n\n```html\n\u003cmat-fab-menu color=\"primary\"\n              direction=\"bottom\"\n              [fabButtons]=\"fabButtonsRandom\"\u003e\n\u003c/mat-fab-menu\u003e\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"@angular-material-extensions/fab-menu demonstration\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/angular-material-extensions/fab-menu/HEAD/assets/v1/bottom.png\"\u003e\n\u003c/p\u003e\n\n```html\n\u003cmat-fab-menu color=\"primary\"\n              direction=\"left\"\n              [fabButtons]=\"fabButtonsRandom\"\u003e\n\u003c/mat-fab-menu\u003e\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"@angular-material-extensions/fab-menu demonstration\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/angular-material-extensions/fab-menu/HEAD/assets/v1/left.png\"\u003e\n\u003c/p\u003e\n\n```html\n\u003cmat-fab-menu color=\"primary\"\n              direction=\"right\"\n              [fabButtons]=\"fabButtonsRandom\"\u003e\n\u003c/mat-fab-menu\u003e\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"@angular-material-extensions/fab-menu demonstration\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/angular-material-extensions/fab-menu/HEAD/assets/v1/right.png\"\u003e\n\u003c/p\u003e\n\u003ca name=\"run-demo-app-locally\"/\u003e\n\n###  Run Demo App Locally\n\n\nBuild the library\n\nafter installing the dependencies with `npm i`\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/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/select-country](https://github.com/angular-material-extensions/select-country)\n- [@angular-material-extensions/contacts](https://github.com/angular-material-extensions/contacts)\n\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/fab-menu/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## Who is using ngx-mailto? Awesome apps?\n\n1. [Nahaus.de](https://nahaus.de)\n\n\nAre you missing your project or you app? PR me to publish it on the README\n\n![jetbrains logo](https://raw.githubusercontent.com/angular-material-extensions/fab-menu/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) 2019-2022 [Anthony Nahas](https://github.com/AnthonyNahas). Licensed under the MIT License (MIT)\n","funding_links":["https://github.com/sponsors/angular-material-extensions","https://tidelift.com/funding/github/npm/@angular-material-extensions/fab-menu","https://github.com/AnthonyNahas","anahas.de"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-material-extensions%2Ffab-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangular-material-extensions%2Ffab-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-material-extensions%2Ffab-menu/lists"}