UNPKG

@hackplan/polaris

Version:

Shopify’s product component library

22 lines (21 loc) 550 B
import React from 'react'; export interface Props { trapping?: boolean; className?: string; children?: React.ReactNode; } export interface State { shouldFocusSelf: boolean | undefined; } export default class TrapFocus extends React.PureComponent<Props, State> { state: State; private focusTrapWrapper; componentDidMount(): void; handleTrappingChange(): { shouldFocusSelf: boolean; }; render(): JSX.Element; private readonly shouldDisable; private setFocusTrapWrapper; private handleBlur; }