UNPKG

@ebay/ebayui-core

Version:

Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.

24 lines (23 loc) 725 B
import type { WithNormalizedProps } from "../../global"; export interface SelectionChipEvent { selected: boolean; originalEvent: Event; } interface SelectionChipInput extends Omit<Marko.HTML.Button, `on${string}`> { renderBody?: Marko.Body; selected?: boolean; "on-click"?: (event: SelectionChipEvent) => void; } export interface Input extends WithNormalizedProps<SelectionChipInput> { } export interface State { selected?: boolean; mounted: boolean; } declare class SelectionChip extends Marko.Component<Input, State> { onCreate(input: Input): void; onMount(): void; handleButtonClick(originalEvent: MouseEvent): void; onInput(input: Input): void; } export default SelectionChip;