<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [DeviceDetector](./x-components.devicedetector.md)

## DeviceDetector variable

This component helps to detect or setting a device, that can be used later to create different layouts optimized for different devices. This detected device is available under the [XComponentAliasAPI.device](./x-components.xcomponentaliasapi.device.md) property.

**Signature:**

```typescript
_default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
    breakpoints: {
        type: PropType<Record<Device, MaxWidth>>;
        default: () => {};
    };
    force: PropType<Device>;
    throttleMs: {
        type: NumberConstructor;
        default: number;
    };
}>, {
    throttledStoreWindowWidth: () => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
    breakpoints: {
        type: PropType<Record<Device, MaxWidth>>;
        default: () => {};
    };
    force: PropType<Device>;
    throttleMs: {
        type: NumberConstructor;
        default: number;
    };
}>> & Readonly<{}>, {
    breakpoints: Record<string, number>;
    throttleMs: number;
}, {}, {
    GlobalEvents: new () => {
        $props: import("vue").VNodeProps & import("vue-global-events").GlobalEventsProps;
    };
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
```
