One definition of the elements Tab can reach (rendered, visible, no negative tabindex, not inert or aria-hidden, native tab order) plus a Tab/Shift+Tab wrap helper for overlay panels.
npx shadcn@latest add @zyeon/focus-trapZyeon UI limits how often it can be asked, and focusTrap hasn't had its turn. Its source will show here once it has.