react-outline-manager
Version:
A simple helper for toggling CSS outlines.
25 lines (24 loc) • 712 B
TypeScript
import * as React from 'react';
interface Props extends React.HTMLProps<HTMLElement> {
className: string;
tagName?: string;
toggle: boolean;
}
interface State {
isUsingKeyboard: boolean;
}
export default class ReactOutlineHander extends React.Component<Props, State> {
static defaultProps: Partial<Props>;
state: State;
componentDidMount(): void;
componentDidUpdate(): void;
componentWillUnmount(): void;
addListeners: () => void;
handleTab: ({ keyCode }: KeyboardEvent) => void;
handleMouseDown: () => void;
insertStyleTag: () => void;
removeListeners: () => void;
updateClassName: (className: string) => void;
render(): JSX.Element;
}
export {};