Developer mode
Opens components on the React tab by default.
Your bookmarks


To implement the useFocusTrap hook in your component, add the import:

import useFocusTrap from "@kiwicom/orbit-components/lib/hooks/useFocusTrap";

Then you can use it:

const Component = (props: Props) => {
  const ref = React.useRef(null);

  return <OtherComponent ref={ref}>...etc</OtherComponent>;


The table below contains all parameters available to the useFocusTrap hook.

Name Type Description
ref func Component reference