@zendeskgarden/container-focusvisible
Version:
Containers relating to the :focus-visible polyfill hook in the Garden Design System
20 lines (19 loc) • 770 B
TypeScript
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import React from 'react';
import { IUseFocusVisibleProps } from './useFocusVisible';
export interface IFocusVisibleContainerProps extends Omit<IUseFocusVisibleProps, 'scope'> {
/** A render prop function which receives a `ref` */
render?: (options: {
ref: React.RefObject<HTMLDivElement>;
}) => React.ReactNode;
/** A children render prop function which receives a `ref` */
children?: (options: {
ref: React.RefObject<HTMLDivElement>;
}) => React.ReactNode;
}
export declare const FocusVisibleContainer: React.FunctionComponent<IFocusVisibleContainerProps>;