@dxos/react-ui
    Preparing search index...

    Type Alias ItemBinding

    A collection item's selection and activation, as a selection hook (useListSelection) gives it. Every collection (a list, a masonry, a mosaic stack or board) takes one per item as itemProps(id), so they select alike.

    type ItemBinding = {
        "aria-selected"?: boolean;
        onActivate?: (event: MouseEvent | KeyboardEvent) => void;
        onClick?: (event: MouseEvent) => void;
        onFocus?: (event: FocusEvent) => void;
    }
    Index

    Properties

    "aria-selected"?: boolean
    onActivate?: (event: MouseEvent | KeyboardEvent) => void

    Clicked, or Enter pressed while the item itself has focus (e.g. to open it).

    onClick?: (event: MouseEvent) => void
    onFocus?: (event: FocusEvent) => void