Skip to content

Chip

Chip provides interactive filter, selection, and action chips with animated check state and close button support. Also exported as Tag alias.

Usage

ChipExample.tsx
import { useState } from 'react';
import { Chip } from '@masumdev/rn-ui';
export function ChipExample() {
const [selected, setSelected] = useState(false);
return (
<Chip
label="React Native"
selected={selected}
onSelect={setSelected}
variant="soft"
tone="primary"
/>
);
}

Variants

  • filled - Solid background when selected
  • outline - Border-only chip
  • soft - Subtle tinted background (default)

Props API

PropTypeDefaultDescription
label*stringText label displayed inside the chip.
selectedbooleanfalseControlled selection state.
onSelect(selected: boolean) => voidToggle callback when chip is pressed.
onClose() => voidClose/dismiss callback. Renders an X button when provided.
iconRenderIconLeading icon element.
rightIconRenderIconTrailing icon element.
variant"filled" | "outline" | "soft""soft"Visual style variant.
sizeComponentSize"md"Chip size (sm, md, lg).
toneComponentTone"primary"Color tone.
disabledbooleanfalseDisable interaction.
hapticFeedbackbooleantrueEnable haptic feedback on press.