@gremorie/ng-display
v0.4.0
Published
Display primitives for Angular - Card and Badge. Companion to Spartan-ng (fills the gap for Card and Badge). Part of Gremorie.
Downloads
692
Maintainers
Readme
@gremorie/ng-display
Display primitives for Angular: Card, Badge, and Carousel. A companion to Spartan-ng that fills the gaps for surfaces and content presentation. Part of Gremorie, an AI native design system.
Full documentation lives at gremorie.com.
Install
npm i @gremorie/ng-display @gremorie/ng-core class-variance-authority embla-carouselRequires Angular 21 (@angular/core ^21.2.0). The Carousel uses
embla-carousel, and the package shares the Gremorie tokens through
@gremorie/ng-core.
Styles
These primitives are styled with the Gremorie design tokens, so import the
core theme once in your global styles.css:
@import 'tailwindcss';
@import '@gremorie/ng-core/theme.css';Usage
import { Component } from '@angular/core';
import {
Card,
CardHeader,
CardTitle,
CardContent,
Badge,
} from '@gremorie/ng-display';
@Component({
selector: 'app-example',
standalone: true,
imports: [Card, CardHeader, CardTitle, CardContent, Badge],
template: `
<gn-card class="max-w-sm">
<gn-card-header>
<gn-card-title>Welcome</gn-card-title>
</gn-card-header>
<gn-card-content>
<gn-badge variant="secondary">New</gn-badge>
</gn-card-content>
</gn-card>
`,
})
export class ExampleComponent {}Components
Card(selector:gn-card) withCardHeader(gn-card-header),CardTitle(gn-card-title),CardDescription(gn-card-description),CardAction(gn-card-action),CardContent(gn-card-content), andCardFooter(gn-card-footer).Badge(selector:gn-badge) withbadgeVariantsand theBadgeVarianttype.Carousel(selector:gn-carousel) withCarouselContent(gn-carousel-content),CarouselItem(gn-carousel-item),CarouselPrevious(gn-carousel-previous), andCarouselNext(gn-carousel-next), plus theCarouselServiceandCarouselOrientationtype.
License
MIT. See LICENSE.
