<!-- 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<{
    breakpoints: {
        type: PropType<Record<string, number>>;
        default: () => {};
    };
    force: PropType<string>;
    throttleMs: {
        type: NumberConstructor;
        default: number;
    };
}, {
    throttledStoreWindowWidth: () => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
    breakpoints: {
        type: PropType<Record<string, number>>;
        default: () => {};
    };
    force: PropType<string>;
    throttleMs: {
        type: NumberConstructor;
        default: number;
    };
}>>, {
    breakpoints: Record<string, number>;
    throttleMs: number;
}, {}>
```
