Ownable Install
Install Badge from the TailNG registry with the shadcn-like flow. This copies source files into your app so your team can own and evolve the implementation locally.
Install from registry
Run from your Angular workspace root.
pnpm
bash
pnpm dlx tailng add badgenpx
bash
npx tailng add badgeGenerated files
The command scaffolds local files under src/app/tailng-ui/badge.
src/app/tailng-ui/badge/tng-badge-primitive.tssrc/app/tailng-ui/badge/tng-badge.tssrc/app/tailng-ui/badge/index.ts
Import in your feature module/component
Imports
ts
import { TngBadge, TngBadgePrimitive } from './tailng-ui/badge';
Usage
Template usage
html
<button
type="button"
[tngBadge]="42"
tngBadgeTone="danger"
>
Notifications
</button>