# Chip Group — React Native component for Expo

> Filter chips that widen to make room as a check mark draws itself in.

Filter chips for single or multiple choice. A check mark draws itself in while the chip widens smoothly to make room and its colours cross-fade. Wrapping or horizontally scrolling.

- Docs: https://expokit.in/docs/components/chip-group
- Tier: Free
- Also called: tag selector, chips, filter chips, pill selector
- Category: Selection
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg
- Uses ExpoKit items: kit
- Variants: Solid, Outline, Soft, Scrollable, Sizes

## Installation

Run once per project: `npx @expokit/cli@latest init` (shared theme + KitProvider). Then:

```bash
npx @expokit/cli@latest add chip-group
```

The CLI copies the source into your project (you own the code) and installs react-native-svg.

Import: `import { ChipGroup } from "@/components/ui/chip-group";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `options` | `(string \| { value, label?, icon?, count?, disabled? })[]` | — | Plain strings or objects with label, icon, count and per-chip disabled. |
| `multiple` | `boolean` | `false` | Allow several selected chips. |
| `value / onValueChange` | `string[]` | — | Controlled selection (or use defaultValue). Single mode reports [] or [value]. |
| `defaultValue` | `string[]` | `[]` | Initial selection when uncontrolled. |
| `deselectable` | `boolean` | `true` | Single mode: tapping the selected chip clears it. |
| `variant` | `"solid" \| "outline" \| "soft"` | `"solid"` | Selected look: filled accent, accent border with a faint tint, or soft accent tint. |
| `size` | `"sm" \| "md" \| "lg"` | `"md"` | 30 / 36 / 42pt tall. |
| `scrollable` | `boolean` | `false` | One horizontally scrolling row instead of wrapping. |
| `contentInset` | `number` | `0` | Scroll-row edge padding that bleeds into your screen gutter. |
| `showCheck` | `boolean` | `true` | Morph a check in front of the label when selected. |
| `accent` | `string` | `theme accent` | Selected colour. |
| `disabled` | `boolean` | `false` | Dims every chip and blocks presses (or set disabled per option). |
| `style` | `StyleProp<ViewStyle>` | — | Style for the wrapping row (the ScrollView when scrollable). |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Touch**: Tap to select. In single mode, tapping the selected chip clears it unless deselectable is false. Short chips pad their hit area to 44pt.
- **Motion**: Selection springs the check, width and colours together, and chips squish while pressed.
- **Screen readers**: Chips are radios in single mode and checkboxes in multiple mode, with checked and disabled state.

## FAQ

### How do I make a tag selector in React Native?

Use ExpoKit's Chip Group: run npx @expokit/cli@latest add chip-group in your Expo or React Native project and it copies a ready-made tag selector into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Chip Group work in Expo Go?

Yes. Chip Group runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg) are all included in Expo Go.

### How do I add Chip Group to my Expo app?

Run npx @expokit/cli@latest add chip-group in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.

### Is Chip Group free?

Yes. Chip Group is free: its full source is on this page and the CLI installs it without an account.

### Can I change how Chip Group looks?

Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.

## More

- Live preview, variants and code: https://expokit.in/docs/components/chip-group
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
