Skip to main content

Chip

Chips are compact elements that can represent inputs, attributes, or actions. They can have an icon or avatar on the left, and a close button icon on the right. They are typically used to:

• Present multiple options \ • Represent attributes active or chosen \ • Present filter options \ • Trigger actions related to primary content

How to use

import React from 'react';
import {Chip} from '@gyri/native-ui-components';

const MyComponent = () => {
<Chip
chipIcon={"information"}
onPress={()=>console.log('Pressed')}
chipText={'Example Chip'}
className={className}
/>
};

export default MyComponent;
#NameData typeDefault valueValuesDescription
1modestring'text''text', 'outlined'
2iconstring
3selectedbooleanfalseWhether chip is selected.
4classNamestring"It defined external CSS stylesheet.
5styleobjectCustom style object
6textStyleStyle of Chip's text.

For more details https://callstack.github.io/react-native-paper/docs/components/Chip