{"id":31098926,"url":"https://github.com/gustavocostaw/ngc-float-button","last_synced_at":"2025-09-16T21:04:48.088Z","repository":{"id":65424515,"uuid":"99048455","full_name":"GustavoCostaW/ngc-float-button","owner":"GustavoCostaW","description":"Google Material Design Float Button - Implementation for Angular v4+. Demo: http://bit.ly/2yIya2f","archived":false,"fork":false,"pushed_at":"2020-05-30T02:57:48.000Z","size":37,"stargazers_count":57,"open_issues_count":13,"forks_count":23,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-08-16T05:27:02.494Z","etag":null,"topics":["angular","angular-components","material-design"],"latest_commit_sha":null,"homepage":"","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/GustavoCostaW.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":"2017-08-01T22:32:51.000Z","updated_at":"2025-04-18T16:58:03.000Z","dependencies_parsed_at":"2023-01-23T10:55:18.536Z","dependency_job_id":null,"html_url":"https://github.com/GustavoCostaW/ngc-float-button","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GustavoCostaW/ngc-float-button","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GustavoCostaW%2Fngc-float-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GustavoCostaW%2Fngc-float-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GustavoCostaW%2Fngc-float-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GustavoCostaW%2Fngc-float-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GustavoCostaW","download_url":"https://codeload.github.com/GustavoCostaW/ngc-float-button/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GustavoCostaW%2Fngc-float-button/sbom","scorecard":{"id":60053,"data":{"date":"2025-08-11","repo":{"name":"github.com/GustavoCostaW/ngc-float-button","commit":"f1a600cd0ab246d7d8e02eaed3564bf81b0e2444"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-c75v-2vq8-878f"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T01:30:06.890Z","repository_id":65424515,"created_at":"2025-08-15T01:30:06.890Z","updated_at":"2025-08-15T01:30:06.890Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275483869,"owners_count":25473144,"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","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["angular","angular-components","material-design"],"created_at":"2025-09-16T21:04:11.379Z","updated_at":"2025-09-16T21:04:48.077Z","avatar_url":"https://github.com/GustavoCostaW.png","language":"TypeScript","readme":"# ngc-float-button\n\n[`Google Material Floating Action Button`](https://material.io/guidelines/components/buttons-floating-action-button.html),\nImplementation for Angular v4+\n\n![](http://g.recordit.co/yfaZdBGGCY.gif)\n\n\n## [`Demo`](http://bit.ly/2yIya2f)\n\n## Installation\n\nFirst, you need to install the npm module:\n\n```sh\nnpm install ngc-float-button --save\n```\n\n## Dependencies\n\n#### Google Material Icons\n#### Angular Material \u003e= beta.12\n#### Angular \u003e= 4.4.4\n\n## Usage\n\n#### 1. You need to add the Google Material icons in your `index.html`:\n##### The Google Material Icons is required by Angular Material \u003cmat-icon\u003e component\n\n```HTML\n    \u003clink href=\"https://fonts.googleapis.com/icon?family=Material+Icons\" rel=\"stylesheet\"\u003e\n```\n\nCheck the [`Google Material Icons site`](https://material.io/icons/) to see all icons\n\n#### 2. Import the `NgcFloatButtonModule` in your project:\n\n```ts\nimport {BrowserModule} from '@angular/platform-browser';\nimport {NgModule} from '@angular/core';\nimport {NgcFloatButtonModule} from 'ngc-float-button';\n\n@NgModule({\n    imports: [\n        BrowserModule,\n        NgcFloatButtonModule\n    ],\n    bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n##### SharedModule\n\nIf you use a [`SharedModule`](https://angular.io/docs/ts/latest/guide/ngmodule.html#!#shared-modules) that you import in multiple other feature modules,\nyou can export the `NgcFloatButtonModule` to make sure you don't have to import it in every module.\n\n```ts\n@NgModule({\n    exports: [\n        CommonModule,\n        NgcFloatButtonModule\n    ]\n})\nexport class SharedModule { }\n```\n\nFinally, you can use `ngc-float-button` in your Angular project.\n\n## Sample\n\nThe FAB template\n\n```HTML\n    \u003cngc-float-button icon=\"add\"\u003e\n        \u003cngc-float-item-button icon=\"person_add\" content=\"float item 1\"\u003e\u003c/ngc-float-item-button\u003e\n        \u003cngc-float-item-button icon=\"gps_fixed\" content=\"float item 2\"\u003e\u003c/ngc-float-item-button\u003e\n        \u003cngc-float-item-button icon=\"mode_edit\" content=\"float item 3\"\u003e\u003c/ngc-float-item-button\u003e\n    \u003c/ngc-float-button\u003e\n```\n\n## API\n\n#### @Input properties\n\n`ngc-float-button` properties:\n\n- `icon` property expects for `icon_name` listed in Google Material Icons site.\n\n- `[open]` property expects for `BehaviorSubject` type, with this you can open or close the FAB dispatching events.\n\n- `disabled` property expects a `boolean` to toggle if a button is clickable. Defaults to `false`.\n\n- `color` property define the background color and expects a `background:{value}` valid value. Defaults to `#dd0031`.\n\n- `direction` property expects for `string` value type value that's accepted `top`, `right`, `bottom`, `left`. Defaults to `top`\n\n- `spaceBetweenButtons` - property expects a valid number value in `px` to define the space between each `ngc-float-item-button`, Defaults to `55`\n\nSample: `[open]`\n\n```Typescript\n    ...\n    //our parent component\n\n    // with 'true' our FAB will be started open.\n    public open:BehaviorSubject\u003cboolean\u003e = new BehaviorSubject(true); // true is the initial state of FAB\n\n    ...\n```\n\n```HTML\n    \u003cdiv\u003e\n        \u003cbutton md-button (click)=\"open.next(true)\"\u003eOpen\u003c/button\u003e\n        \u003cbutton md-button (click)=\"open.next(false)\"\u003eClose\u003c/button\u003e\n    \u003c/div\u003e\n\n    \u003cngc-float-button icon=\"add\" [open]=\"open\"\u003e\n    ...\n```\n\nSample: `[direction]`\n\n```HTML\n    \u003cdiv\u003e\n        \u003cbutton md-button (click)=\"direction='top'\"\u003eTop\u003c/button\u003e\n        \u003cbutton md-button (click)=\"direction='right'\"\u003eRight\u003c/button\u003e\n        \u003cbutton md-button (click)=\"direction='bottom'\"\u003eBottom\u003c/button\u003e\n        \u003cbutton md-button (click)=\"direction='left'\"\u003eLeft\u003c/button\u003e\n    \u003c/div\u003e\n\n    \u003cngc-float-button icon=\"add\" direction=\"{{direction}}\"\u003e\n    ...\n```\n\n`ngc-float-item-button` properties:\n\n- `icon` property expects for `icon_name` listed in Google Material Icons site.\n- `color` property define the background color and expects a `background:{value}` valid value. Defaults to `white`.\n- `disabled` property expects a `boolean` to toggle if a button is clickable. Defaults to `false`.\n- `content` property expects `string` value to show additional text in `ngc-float-item-button`\n\n#### @Output property\n\nYou can listen the all events emitted by `ngc-float-button` subscribing in the `(events)` observable output.\n\nSample:\n\n```Typescript\n    ...\n\n    output(log) {\n        console.log(log);\n    }\n\n    ...\n```\n\n```HTML\n    \u003cngc-float-button (events)=\"output($event)\"\u003e\n    ...\n```\n\n## Customization\n\nIf you need change some css property in `ngc-float-button` you need to use `/deep/` selector in parent css component.\n\nMore info about customization soon.\n\n\n## CSS animations credits\n\n[`The css animations were inspired by this`](https://embed.plnkr.co/gist/00de5ab564446dcb8be067d44e67a692)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavocostaw%2Fngc-float-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgustavocostaw%2Fngc-float-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavocostaw%2Fngc-float-button/lists"}