UNPKG

@crossed/primitive

Version:

A universal & performant styling library for React Native, Next.js & React

18 lines 740 B
/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import * as React from 'react'; import type { FocusScopeProps } from './FocusScopeProps'; type FocusScopeElement = HTMLDivElement; declare const FocusScope: React.ForwardRefExoticComponent<FocusScopeProps & React.RefAttributes<HTMLDivElement>>; export declare function useFocusScope(props: FocusScopeProps, forwardedRef: React.ForwardedRef<FocusScopeElement>): { ref: (node: HTMLDivElement) => void; onKeyDown: (event: React.KeyboardEvent) => void; tabIndex: number; }; export { FocusScope }; export type { FocusScopeProps }; //# sourceMappingURL=FocusScope.d.ts.map