Mobile

Shows content only on mobile viewports.

Mobile

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

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

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

<Mobile>
<Button>Hello World!</Button>
</Mobile>

Props

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

NameTypeDescription
childrenReact.NodeChildren components to show.