Chip

Soft inline status tags, category indicators, and metadata labels. Lighter-weight than Badge — uses a soft tinted background with coloured text instead of a solid filled pill. Ideal for tags, filters, and inline status labels that should blend into the content rather than stand out.

Variants

Eight colour variants plus a neutral default.

Default Primary Success Warning Danger Purple Secondary Info
PHP

With Icons

Add a Font Awesome icon with ->icon().

Active Draft Pending Rejected Featured PHP
PHP

Inline in Content

Chips sit naturally inline with text, making them ideal for tagging items inside tables, cards, and list rows.

Homepage redesign Design Frontend In Progress
API authentication Backend Done
Legacy payment gateway Deprecated Needs Review
PHP

Badge vs Chip

Badge uses a solid gradient fill and is eye-catching — good for counts, alerts, and prominent status calls. Chip uses a soft tinted background and is subtler — good for tags, categories, and inline metadata that should complement the content rather than dominate it.

Badge Chip    Badge Chip    Badge Chip

PHP PHP Methods (Fluent)

Method / PropertyParametersDescription
$m->chip($id, $text)string, stringCreate a Chip component.
->text($text)stringSet chip text.
->icon($faIcon)stringAdd a Font Awesome icon (e.g. 'fa-check').
->variant($variant)stringSet colour variant directly: default|primary|success|warning|danger|purple|secondary|info.
->primary()Blue tint.
->success()Green tint.
->warning()Orange tint.
->danger()Red tint.
->purple()Purple tint.
->secondary()Grey tint.
->info()Cyan tint.

PHP CSS Classes

Method / PropertyParametersDescription
.m-chipBase chip styling (display:inline-flex, rounded corners, small padding).
.m-chip-defaultNeutral grey tint — used when no variant is specified.
.m-chip-primaryBlue tint.
.m-chip-successGreen tint.
.m-chip-warningOrange tint.
.m-chip-dangerRed tint.
.m-chip-purplePurple tint.
.m-chip-secondaryCool grey tint.
.m-chip-infoCyan tint.