Skip to main content

Chip

Chip component renders a compact, customizable element that can display text and optional icons, often used for tags, categories, or selectable items.

Example banner Example banner

Implementation code

import { Chip } from '@nexara/nativeflow';
import { Camera } from 'lucide-react-native';

const Component = () => {
return (
<Chip renderLeftIcon={<Camera color='#000' size={14} />} />
);
}
export default Component;

Props

PropTypeDefaultDescription
labelstring'Chip'Text displayed inside the chip.
bgstringBackground color of the chip.
labelColorstringColor of the label text.
fsnumberFont size of the label text (overrides fScale if provided).
fScaleTypographyScale'sm'Typography scale of the label text.
ffstringFont family for the label text.
brnumber7Border radius of the chip.
gapnumber7Spacing between elements inside the chip.
paddingVnumber6Vertical padding inside the chip.
paddingHnumber15Horizontal padding inside the chip.
strokenumber0.8Border width of the chip.
strokeColorstringBorder color of the chip.
rippleColorstringRipple effect color when pressed.
disabledbooleanfalseDisables the chip, preventing interaction.
activebooleanfalseIndicates the chip is active (for styling purposes).
renderLeftIconJSX.ElementIcon element to render on the left side of the chip.
renderRightIconJSX.ElementIcon element to render on the right side of the chip.
containerStyleStyleProp<ViewStyle>Custom styles for the chip container.
textStyleStyleProp<TextStyle>Custom styles for the label text.
onPress() => voidFunction executed when the chip is pressed.