forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1import {FocusScope as RadixFocusScope} from 'radix-ui/internal'
2
3/*
4 * The web version of the FocusScope component is a proper implementation, we
5 * use this in Dialogs and such already. It's here as a convenient counterpart
6 * to the hacky native solution.
7 */
8export function FocusScope({children}: {children: React.ReactNode}) {
9 return (
10 <RadixFocusScope.FocusScope loop asChild trapped>
11 {children}
12 </RadixFocusScope.FocusScope>
13 )
14}