UNPKG

creevey

Version:

Cross-browser screenshot testing tool for Storybook with fancy UI Runner

16 lines (15 loc) 627 B
import React from 'react'; import { CreeveySuite } from '../../types.js'; import { CreeveyViewFilter } from '../shared/helpers.js'; export type SuitePath = string[]; export type FocusableItem = null | SuitePath; export interface KeyboardEventsContextType { sidebarFocusedItem: FocusableItem; setSidebarFocusedItem: (item: FocusableItem) => void; } export declare const KeyboardEventsContext: React.Context<KeyboardEventsContextType>; export declare const KeyboardEvents: ({ children, rootSuite, filter, }: { rootSuite: CreeveySuite; filter: CreeveyViewFilter; children: React.ReactChild; }) => JSX.Element;