{"id":48485831,"url":"https://github.com/ajittupe2548/react-draggable-fab","last_synced_at":"2026-04-07T09:33:26.017Z","repository":{"id":255914779,"uuid":"850781583","full_name":"ajittupe2548/react-draggable-fab","owner":"ajittupe2548","description":"A simple and customizable draggable button component for the web. Users can easily move the button around the screen, and it will snap to an edge upon release.","archived":false,"fork":false,"pushed_at":"2024-09-07T20:35:29.000Z","size":606,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-08T21:03:49.271Z","etag":null,"topics":["draggable","draggable-button","react","react-component","react-draggable","sticky-button"],"latest_commit_sha":null,"homepage":"https://react-draggable-fab.vercel.app/","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/ajittupe2548.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"publiccode":null,"codemeta":null}},"created_at":"2024-09-01T18:57:35.000Z","updated_at":"2024-09-08T06:59:01.000Z","dependencies_parsed_at":"2024-09-07T20:59:01.550Z","dependency_job_id":null,"html_url":"https://github.com/ajittupe2548/react-draggable-fab","commit_stats":null,"previous_names":["ajittupe2548/react-draggable-fab"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ajittupe2548/react-draggable-fab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajittupe2548%2Freact-draggable-fab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajittupe2548%2Freact-draggable-fab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajittupe2548%2Freact-draggable-fab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajittupe2548%2Freact-draggable-fab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajittupe2548","download_url":"https://codeload.github.com/ajittupe2548/react-draggable-fab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajittupe2548%2Freact-draggable-fab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31508129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["draggable","draggable-button","react","react-component","react-draggable","sticky-button"],"created_at":"2026-04-07T09:33:17.462Z","updated_at":"2026-04-07T09:33:25.994Z","avatar_url":"https://github.com/ajittupe2548.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-draggable-fab\n\nA simple and customizable draggable button component for the web. Users can easily move the button around the screen, and it will snap to an edge  upon release.\n\n- **Customizable**: Easily configure button state, appearance to suit your needs.\n- **Lightweight**: Minimal dependencies—only `prop-types` is required.\n- **Responsive**: Works seamlessly across different screen sizes and devices.\n- **Smooth Interaction**: Provides a smooth dragging experience with snap-to-edge  functionality.\n\n## Features\n\n- **Draggable**: Move the button freely around the screen.\n- **Snap-to-Edge**: Automatically aligns the button to an edge when released.\n- **Custom Styling**: Apply your own styles and customize the button's look and feel.\n- **Touch and Mouse Support**: Fully functional with both touch and mouse interactions.\n\n## Demo\n\n\u003ca href=\"https://react-draggable-fab.vercel.app/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eDemo Link\u003c/a\u003e\n\n## Installation\n\nTo get started, install the component using npm:\n\n```bash\nnpm install react-draggable-fab\n```\n\n## Usage\n\n```js\nimport React from 'react';\nimport DraggableButton from 'react-draggable-fab';\n\nconst App = () =\u003e {\n    return \u003cDraggableButton\u003eDrag Me!\u003c/DraggableButton\u003e;\n};\n```\n\n## API\n\n| Prop                 | Type   | Default     | Description                                                                                           |\n| -------------------- | ------ | ----------- | ----------------------------------------------------------------------------------------------------- |\n| blurDelay            | number | `3000`      | Delay before applying the grayed-out (blurred) button style, in milliseconds.                         |\n| children             | string | `''`        | Content inside the draggable button.                                                                  |\n| className            | string | `''`        | Additional CSS class for the component wrapper.                                                       |\n| closeButtonBottom    | string | `100px`     | CSS `bottom` property value for the close button.                                                     |\n| closeButtonClassName | string | `''`        | Additional CSS class for the close button.                                                            |\n| isVisible            | bool   | `undefined` | If `true`, the button will be visible.                                                                |\n| overlayClassName     | string | `''`        | Additional CSS class for the overlay (background blackout).                                           |\n| stickyEdge           | string | `left`      | The edge of the screen where the button will stick (`left` or `right`).                               |\n| verticalThreshold    | number | `50`        | Threshold value for vertical positioning. The component will not stick above or below this threshold. |\n| xPosition            | string | `0`         | Horizontal position (CSS `left` or `right`) of the component relative to the window.                  |\n| yPosition            | string | `400px`     | Vertical position (CSS `top`) of the component relative to the window.                                |\n| onClick              | func   | `() =\u003e {}`  | Callback function triggered when the button is clicked.                                               |\n| onClose              | func   | `() =\u003e {}`  | Callback function triggered when the draggable button is dropped onto the close button.               |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajittupe2548%2Freact-draggable-fab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajittupe2548%2Freact-draggable-fab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajittupe2548%2Freact-draggable-fab/lists"}