Neo-Brutalist Angular Chip

Chip

A directive on <span> for compact labels, tags, and categories. Pairs with nbChipGroup for horizontal chip rows. Supports 10 tones and an optional leading icon via ng-content.

spanHost element
10Tones
Source ↗Open Docs

Preview

AngularTypeScriptRxJSSignals

Usage

Import
import { NbChip, NbChipGroup } from '@ng-brutalism/ui';
Template
<div nbChipGroup>
  <span nbChip>Angular</span>
  <span nbChip tone="mint">TypeScript</span>
  <span nbChip tone="pink">RxJS</span>
  <span nbChip tone="lavender">Signals</span>
</div>

Tones

defaultinkyellowpinkmintlavenderaccentsuccesswarningdanger

Tokens

$95K - $130K

With Icon

Pass an SVG URL to the icon input for a leading icon. It renders through nbIcon in mask mode, so it tints to the chip's foreground color. Use iconSize to scale it.

45 MINNEW

For full-color or labeled icons, project any element as content instead — the leading slot is only used when icon is set.

API

NbChip

InputTypeDefaultDescription
tone'default' | 'ink' | 'yellow' | 'pink' | 'mint' | 'lavender' | 'accent' | 'success' | 'warning' | 'danger''default'Background color tone.
padding'none' | 'sm' | 'md' | 'lg' | 'xl''md'Inner padding scale.
radius'none' | 'sm' | 'md' | 'lg' | 'full''none'Corner radius scale.
shadow'none' | 'sm' | 'default' | 'hard''sm'Drop shadow scale.
iconstringURL of a leading SVG icon, tinted to the chip's foreground via nbIcon mask mode.
iconSize'xs' | 'sm' | 'md' | 'lg' | 'xl''sm'Size of the icon input's icon.

NbChipGroup

Wrapper directive with flex flex-wrap gap-2. No inputs — use Tailwind or inline styles to override spacing.

CSS tokens

TokenDefaultDescription
--nb-chip-bgvar(--nb-surface)Background color.
--nb-chip-fgvar(--nb-foreground)Text and icon color.
--nb-chip-radius0pxCorner radius.
--nb-chip-shadow2px 2px 0 0 var(--nb-shadow)Box shadow.
--nb-chip-icon-size0.75remProjected SVG size.