July 30, 2026 — The unofficial Laracon US Day 3. Get your ticket to The Vibes

You're viewing pre-release documentation — version 4.x is in beta

Features, APIs and behaviour may change before the stable release. View the stable version (3.x)

Chip


Overview#

A compact selectable tag with a boolean active state and an optional leading icon. Renders as a capsule.

When selected, the chip fills with theme.primary and uses theme.onPrimary for content. When unselected, it uses theme.surfaceVariant with a theme.outline 1pt stroke. Per Model 3 — no per-instance color overrides.

Copied!
<native:chip label="Verified" icon="check" native:model="filterVerified" />

Props#

  • label - Chip text (required, string). Can also be passed as the first argument to make()
  • selected / value - Whether the chip is active (optional, boolean, default: false)
  • icon - Leading icon name (optional, string)
  • disabled - Disable the chip (optional, boolean, default: false)
  • a11y-label - Accessibility label (optional)
  • a11y-hint - Accessibility hint (optional)

Events#

  • @change - Livewire method called when toggled. Receives the new boolean value

Two-way Binding#

native:model binds the selected state to a Livewire boolean property:

Copied!
<native:chip label="On Sale" native:model="filterOnSale" />

Examples#

Filter chip row#

Copied!
<native:row :gap="8" class="w-full p-4">
<native:chip label="All" :selected="$filter === 'all'" @change="setFilter('all')" />
<native:chip label="Active" :selected="$filter === 'active'" @change="setFilter('active')" />
<native:chip label="Archive" :selected="$filter === 'archive'" @change="setFilter('archive')" />
</native:row>

With icon#

Copied!
<native:chip label="Verified" icon="check" native:model="onlyVerified" />

Element#

Copied!
use Nativephp\NativeUi\Elements\Chip;
 
Chip::make('Verified')
->icon('check')
->selected($onlyVerified)
->onChange('toggleVerified');
  • make(string $label = '') - Create a chip with an optional label
  • label(string $label) - Set the chip text
  • selected(bool $selected = true) - Active state
  • icon(string $icon) - Leading icon
  • disabled(bool $value = true) - Disable the chip
  • a11yLabel(string $value), a11yHint(string $value) - Accessibility
  • syncMode(string $mode) - Set by native:model modifiers
  • onChange(string $method) - Livewire method invoked on toggle