UNPKG

monday-ui-react-core

Version:

Official monday.com UI resources for application development in React.js

13 lines (10 loc) 385 B
import React from "react"; import { NOOP } from "../../../utils/function-utils"; type ListContextType = { /** * A callback function which is being called when the item is being focused by keyboard navigation * @param ListItem id */ updateFocusedItem: (id: string) => void; }; export const ListContext = React.createContext<ListContextType>({ updateFocusedItem: NOOP });