import React from "react"; type VirtualFocusProps = { children: React.ReactNode; /** * Whether to cause focus to loop around when it hits the first or last element * @default false **/ loop?: boolean; }; /** * A component that manages a virtual focus using the 'up' and 'down' * arrow keys as well as selection with 'Return'. * * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/virtualfocus) * @see 🏷️ {@link AccordionProps} * * @example * ```jsx * * { * console.log("you selected the anchor"); * }} * onActive={() => { * console.log("the anchor is now virtually focused"); * }} * > * * * * { * console.log("you selected the item"); * }} * onActive={() => { * console.log("the item is now virtually focused"); * }} * > *

item 1

*
* { * console.log("you selected the item"); * }} * onActive={() => { * console.log("the item is now virtually focused"); * }} * > *

item 2

*
*
*
* ``` */ export declare const VirtualFocus: { ({ children, loop }: VirtualFocusProps): React.JSX.Element; Anchor: React.ForwardRefExoticComponent>; Item: React.ForwardRefExoticComponent>; Content: React.ForwardRefExoticComponent>; }; export default VirtualFocus;