Desktop

Shows content only on desktop viewports.

Desktop

To implement Desktop component into your project you’ll need to add the import:

import Desktop from "@kiwicom/orbit-components/lib/Desktop";

After adding import into your project you can use it simply like:

<Desktop>
<Button>Hello World!</Button>
</Desktop>

Props

Table below contains all types of the props available in the Desktop component.

NameTypeDescription
childrenReact.NodeChildren components to show.