{"id":15618032,"url":"https://github.com/omnedia/ngx-scrollbar","last_synced_at":"2026-02-13T13:08:27.275Z","repository":{"id":254743891,"uuid":"847382243","full_name":"omnedia/ngx-scrollbar","owner":"omnedia","description":"A simple component library to create a custom scrollbar. ","archived":false,"fork":false,"pushed_at":"2025-11-29T17:11:44.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-01T17:53:33.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/omnedia.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-25T17:04:52.000Z","updated_at":"2025-11-29T17:10:20.000Z","dependencies_parsed_at":"2024-08-25T20:08:27.655Z","dependency_job_id":"fc56710b-a046-4377-a074-e6ad5fc73c9c","html_url":"https://github.com/omnedia/ngx-scrollbar","commit_stats":null,"previous_names":["omnedia/ngx-scrollbar"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/omnedia/ngx-scrollbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnedia%2Fngx-scrollbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnedia%2Fngx-scrollbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnedia%2Fngx-scrollbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnedia%2Fngx-scrollbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omnedia","download_url":"https://codeload.github.com/omnedia/ngx-scrollbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnedia%2Fngx-scrollbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29407331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"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":[],"created_at":"2024-10-03T08:00:54.610Z","updated_at":"2026-02-13T13:08:27.257Z","avatar_url":"https://github.com/omnedia.png","language":"TypeScript","funding_links":[],"categories":["Recently Updated","Third Party Components"],"sub_categories":["[Oct 01, 2024](/content/2024/10/01/README.md)","Scroll"],"readme":"# ngx-scrollbar\n\n\u003ca href=\"https://ngxui.com\" target=\"_blank\" style=\"display: flex;gap: .5rem;align-items: center;cursor: pointer; padding: 0 0 0 0; height: fit-content;\"\u003e\n  \u003cimg src=\"https://ngxui.com/assets/img/ngxui-logo.png\" style=\"width: 64px;height: 64px;\"\u003e\n\u003c/a\u003e\n\nThis Library is part of the NGXUI ecosystem. \u003cbr\u003e\nView all available components at https://ngxui.com\n\n`@omnedia/ngx-scrollbar` is an Angular library that provides a customizable and lightweight scrollbar component. This component offers a custom scrollbar with smooth scrolling functionality and allows for full control over its appearance through styling.\n\n## Features\n\n- Custom scrollbar for the y-Direction with adjustable styles and behavior.\n- Smooth scrolling with click-and-drag functionality.\n- Easily integratable into Angular projects as a standalone component.\n- Allows for styling customization via CSS classes and inline styles.\n\n## Installation\n\nInstall the library using npm:\n\n```bash\nnpm install @omnedia/ngx-scrollbar\n```\n\n## Usage\n\nImport the `NgxScrollbarComponent` in your Angular module or component:\n\n```typescript\nimport {NgxScrollbarComponent} from '@omnedia/ngx-scrollbar';\n\n@Component({\n  ...\n    imports:\n[\n  ...\n    NgxScrollbarComponent,\n],\n...\n})\n```\n\nUse the component in your template:\n\n```html\n\n\u003com-scrollbar [styleClass]=\"'custom-scrollbar'\"\u003e\n  \u003cdiv\u003e\n    \u003c!-- Your scrollable content here --\u003e\n    \u003cp\u003eScrollable content 1\u003c/p\u003e\n    \u003cp\u003eScrollable content 2\u003c/p\u003e\n    \u003cp\u003eScrollable content 3\u003c/p\u003e\n  \u003c/div\u003e\n\u003c/om-scrollbar\u003e\n```\n\n## How It Works\n\n- Custom Scrollbar: The ngx-scrollbar component wraps your content inside a custom scrollbar container. The appearance of the scrollbar can be controlled via the styleClass input, allowing for full customization.\n- Smooth Scrolling: The scrollbar supports smooth scrolling, and users can drag the scrollbar for precise control.\n- Dynamic Calculation: The size of the scrollbar is calculated based on the content height relative to the container.\n\n## API\n\n```html\n\n\u003com-scrollbar [styleClass]=\"'your-custom-class'\" [onlyShowOnHover]=\"onlyShowOnHover\"\u003e\n  \u003cng-content\u003e\u003c/ng-content\u003e\n\u003c/om-scrollbar\u003e\n```\n\n- `styleClass` (optional): A custom CSS class to apply to the scrollbar component for additional styling.\n- `onlyShowOnHover` (optional): Sets if the scrollbar is only visible while you hover the content.\n\n## Example\n\n```html\n\n\u003com-scrollbar [styleClass]=\"'custom-scrollbar-style'\"\u003e\n  \u003cdiv\u003e\n    \u003cp\u003eItem 1\u003c/p\u003e\n    \u003cp\u003eItem 2\u003c/p\u003e\n    \u003cp\u003eItem 3\u003c/p\u003e\n    \u003c!-- Add more content here --\u003e\n  \u003c/div\u003e\n\u003c/om-scrollbar\u003e\n```\n\nThis will create a custom scrollbar for the content with the specified custom styles.\n\n## Styling\n\nYou can style the component globally or use the styleClass input to apply your custom styles. \u003cbr\u003e\nMake sure to give the `om-scrollbar` component a height of 100% in your component. \u003cbr\u003e\nThe `max-height` is defined by the components parent component.\n\n## Custom Scrollbar Styling Example\n\nIn this example, the scrollbar bar is styled to be larger and colored differently:\n\n```html\n\n\u003cdiv class=\"nav-bar\"\u003e\n  \u003com-scrollbar styleClass=\"custom-scrollbar\"\u003e\n    \u003cdiv class=\"nav-items\"\u003e\n      \u003cp\u003eContent\u003c/p\u003e\n      \u003cp\u003eContent\u003c/p\u003e\n      \u003cp\u003eContent\u003c/p\u003e\n      \u003cp\u003eContent\u003c/p\u003e\n      \u003cp\u003eContent\u003c/p\u003e\n      \u003cp\u003eContent\u003c/p\u003e\n      \u003cp\u003eContent\u003c/p\u003e\n      \u003cp\u003eContent\u003c/p\u003e\n      \u003cp\u003eContent\u003c/p\u003e\n    \u003c/div\u003e\n  \u003c/om-scrollbar\u003e\n\u003c/div\u003e\n```\n\n```css\n/* Component styling */\nom-scrollbar {\n  height: 100%;\n}\n\n.nav-bar {\n  height: 500px\n}\n\n.nav-items {\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n  font-size: 2rem;\n}\n\n\n/* Global styling */\n.custom-scrollbar {\n  background-color: rgb(60, 60, 60) !important;\n  width: 0.5rem !important;\n  border-radius: 12px !important;\n  transition: background-color 0.2s;\n\n  \u0026:hover,\n  \u0026.om-scrollbar-bar-active {\n    background-color: rgb(80, 80, 80) !important;\n    opacity: 1 !important;\n  }\n}\n```\n\n## Contributing\n\nContributions are welcome. Please submit a pull request or open an issue to discuss your ideas.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnedia%2Fngx-scrollbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomnedia%2Fngx-scrollbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnedia%2Fngx-scrollbar/lists"}