<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseKeyboardNavigation](./x-components.basekeyboardnavigation.md)

## BaseKeyboardNavigation variable

Base component to handle keyboard navigation for elements inside it. It has a required slot to include the navigable elements.

**Signature:**

```typescript
_default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
    navigationHijacker: {
        type: PropType<TakeNavigationControl[]>;
        default: () => {
            xEvent: string;
            moduleName: string;
            direction: string;
        }[];
    };
    eventsForDirectionLimit: {
        type: PropType<Partial<EventsForDirectionLimit>>;
        default: () => {
            ArrowUp: string;
        };
    };
}>, {
    el: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
    focusNextNavigableElement: (direction: ArrowKey | KeyboardEvent) => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
    navigationHijacker: {
        type: PropType<TakeNavigationControl[]>;
        default: () => {
            xEvent: string;
            moduleName: string;
            direction: string;
        }[];
    };
    eventsForDirectionLimit: {
        type: PropType<Partial<EventsForDirectionLimit>>;
        default: () => {
            ArrowUp: string;
        };
    };
}>> & Readonly<{}>, {
    navigationHijacker: TakeNavigationControl[];
    eventsForDirectionLimit: Partial<EventsForDirectionLimit>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
```

## Remarks

The component can be customized through props: an array of navigationHijacker objects, which contains: the xEvent to listen to, the moduleName in charge of emitting the event and to which direction it should react to; to take control of the navigation and eventsForDirectionLimit, to emit an xEvent when reaching the navigation limit in any direction.

