Skip to content

Latest commit

 

History

History

ebay-chip

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

EbayChip

Demo

Storybook

Usage

Import JS

import EbayChip from "@ebay/ui-core-react/ebay-chip";

Import following styles from SKIN

import "@ebay/skin/chip";

If tokens haven't been added to the project at a higher level, make sure to import

import "@ebay/skin/tokens";

Or import styles using SCSS/CSS

import "@ebay/skin/chip.css";
<EbayChip
    a11yDeleteButtonText="Remove item"
    onDelete={handleDelete}
    disabled={false}
>
    Chip Content
</EbayChip>

Attributes

Name Type Required Description
a11yDeleteButtonText String No Accessibility text for the delete button
onDelete Function Yes Triggered when the delete button is clicked
disabled Boolean No Whether the chip is disabled