import React, { type MouseEventHandler } from 'react'; import type { IconOrContent } from '../../util/utility-types'; import type { Size } from '../../util/variant-types'; export type InputChipProps = { /** * CSS class names that can be appended to the component. */ className?: string; /** * Whether the chip is in a non-interactive, disabled state */ isDisabled?: boolean; /** * Text used in the chip to give it a description */ label: string; /** * Leading slot for the chip. Takes an EDS icon name, or any content to render in its * place at the chip's own type size. */ leadingComponent?: IconOrContent; /** * click handler for the action button on the chip (ex: to dismiss or remove the chip from the screen) */ onClick?: MouseEventHandler; /** * The display size of the chip */ size?: Extract; }; /** * ## Usage * * | Type/Use | Description | Example | * |----------|-------------|---------| * | Input | A chip that represents user-generated input and can be edited or removed. | Displaying selected tags, keywords, or values in a form or input field, or combining multiple pieces of data such as a name and avatar. | * * ### Best Practices * * * **Displaying multi-selection from a large list**: show selections already made without reopening a long select dropdown. Input chips are most helpful when the list of options exceeds 15 items. * * **Representing search filters or criteria**: show active filters or search parameters to make complex filtering feel organized and easily editable. * * **Handling user-generated or free-form data**: transform user-entered text (e.g., email addresses) into a discrete component that confirms the UI recognizes the input. * * ## Interaction * * Unless used as a toggle, chips should always be presented as a group. Depending on the use, groups can either wrap to multiple lines or scroll horizontally. * * ## Content & Accessibility * * ### Do's * * * Keep labels to 1-2 words. * * Represent one piece of information per chip (a discrete thing, grouping, or category). */ export declare const InputChip: { ({ className, isDisabled, label, leadingComponent, onClick, size, ...other }: InputChipProps): React.JSX.Element; displayName: string; };