InputChip
A Chip used for removable selections.@coinbase/cds-web@8.13.6
ImportSourceView source codeFigmaView Figma
import { InputChip } from '@coinbase/cds-web/chips/InputChip'
Related components
Basic usage
Loading...
Live Codefunction Example() { return ( <HStack gap={2}> <InputChip onClick={() => console.log('Remove Basic')} value="Basic Chip" /> <InputChip disabled onClick={() => {}} value="Disabled Chip" /> </HStack> ); }
With Custom Start Element
Loading...
Live Codefunction Example() { return ( <VStack gap={2}> <HStack gap={2}> <InputChip onClick={() => console.log('Remove Star')} value="With Icon" start={<Icon name="star" />} /> </HStack> <HStack gap={2}> <InputChip onClick={() => console.log('Remove BTC')} value="BTC" start={<RemoteImage source={assets.btc.imageUrl} width={16} height={16} />} /> <InputChip onClick={() => console.log('Remove ETH')} value="ETH" start={<RemoteImage source={assets.eth.imageUrl} width={16} height={16} />} /> </HStack> </VStack> ); }
With Custom Accessibility Label
Loading...
Live Codefunction Example() { return ( <HStack gap={2}> <InputChip onClick={() => console.log('Remove Custom')} value="Custom Label" accessibilityLabel="Custom remove action" /> </HStack> ); }