@styleless-ui/react
Version:
Completely unstyled, headless and accessible React UI components.
15 lines (14 loc) • 327 B
TypeScript
/// <reference types="react" />
export interface Props {
/**
* The content of the component.
*/
children: JSX.Element;
/**
* If `true`, the focus will be trapped.
* @default false
*/
enabled?: boolean;
}
declare const FocusTrap: (props: Props) => JSX.Element;
export default FocusTrap;