@gremorie/ng-containers
v0.4.0
Published
Container primitives for Angular - ScrollArea and friends. Part of Gremorie.
Maintainers
Readme
@gremorie/ng-containers
Container primitives for Angular: a styled ScrollArea built on ngx-scrollbar.
Part of Gremorie, an AI native design system.
Full documentation lives at gremorie.com.
Install
npm i @gremorie/ng-containers @gremorie/ng-core ngx-scrollbarRequires Angular 21 (@angular/core ^21.2.0). The ScrollArea is a thin styling
layer over ngx-scrollbar.
Styles
The ScrollArea draws its scrollbar colors from the Gremorie design tokens, so
import the core theme once in your global styles.css:
@import 'tailwindcss';
@import '@gremorie/ng-core/theme.css';Usage
The ScrollArea is a directive on ngx-scrollbar. Use the ScrollAreaImports
bundle, which exposes both NgScrollbarModule and the Gremorie styling
directive in a single import.
import { Component } from '@angular/core';
import { ScrollAreaImports } from '@gremorie/ng-containers';
@Component({
selector: 'app-example',
standalone: true,
imports: [ScrollAreaImports],
template: `
<ng-scrollbar gremorie class="h-72 w-64 rounded-md border">
<div class="p-4">
<!-- long content -->
</div>
</ng-scrollbar>
`,
})
export class ExampleComponent {}Components
ScrollArea(selector:ng-scrollbar[gremorie], ng-scrollbar[gremorieScrollbar]): the styling directive applied to anngx-scrollbarhost.ScrollAreaImports: a convenience array bundlingNgScrollbarModuleand theScrollAreadirective for use inimports: [...].NgScrollbar,NgScrollbarModule: re exported fromngx-scrollbar.
License
MIT. See LICENSE.
