UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

14 lines (13 loc) 507 B
import { fireCancelableEvent } from '../internal/events'; export var breadcrumbItemClickHandler = function (item, onFollow, onClick, event) { var specialKey = event && (event.button !== 0 || event.ctrlKey || event.altKey || event.shiftKey || event.metaKey); var eventDetail = { item: item, text: item.text, href: item.href }; if (!specialKey) { fireCancelableEvent(onFollow, eventDetail, event); } fireCancelableEvent(onClick, eventDetail, event); };