- Getting Started
- The Basics
- Concepts
- SuperNative
-
EDGE Components
- Introduction
- Activity Indicator
- Badge
- Bottom Navigation
- Bottom Sheet
- Button
- Button Group
- Canvas
- Carousel
- Checkbox
- Chip
- Column
- Divider
- Gesture Area
- Icon
- Icons
- Image
- Layout & Styling
- List
- Menus
- Modal
- Pressable
- Progress Bar
- Radio Group
- Row
- Scroll View
- Select
- Shapes
- Side Navigation
- Slider
- Spacer
- Stack
- Tab Row
- Text
- Text Input
- Toggle
- Top Bar
- Virtual List
- Web View
- Plugins
- Testing
- Architecture
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 tomake()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 labellabel(string $label)- Set the chip textselected(bool $selected = true)- Active stateicon(string $icon)- Leading icondisabled(bool $value = true)- Disable the chipa11yLabel(string $value),a11yHint(string $value)- AccessibilitysyncMode(string $mode)- Set bynative:modelmodifiersonChange(string $method)- Livewire method invoked on toggle
Plugin Dev Kit
Build native plugins with
Claude Code
Learn More
NativePHP Ultra
All NativePHP plugins, teams & priority support from
$35/mo
Learn More
The Vibes
The unofficial Laracon US
Day 3
Grab Your Spot
Only 100 tickets!
The Masterclass
Go from zero to
published app
in no time
in no time
Learn More
Early Bird Pricing