Inline

Adds spacing among inline components.

Inline

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

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

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

<Inline>Hello World!</Inline>

Props

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

NameTypeDefaultDescription
asstring"div"Render as element.
classNamestring"div"Optional className of component.
childrenReact.NodeThe children of the Inline.
dataTeststringOptional prop for testing purposes.
spacingspacingTokenThe spacing between children elements of the Inline
alignenumThe align-items of the Inline
justifyenumThe justify-content of the Inline
largeDesktopMediaQueriesObject for setting up properties for the largeDesktop viewport.
desktopMediaQueriesObject for setting up properties for the desktop viewport.
tabletMediaQueriesObject for setting up properties for the tablet viewport.
largeMobileMediaQueriesObject for setting up properties for the largeMobile viewport.
mediumMobileMediaQueriesObject for setting up properties for the mediumMobile viewport.

Media Queries

When you need to specify some different behaviour of the Inline component on different viewport, you can use properties for it. There are mediumMobile, largeMobile, tablet, desktop and largeDesktop available and it behaves the same as mediaQueries functions. All this properties - objects have the some own properties and none is required.

NameTypeDefaultDescription
spacingspacingTokenThe spacing between children elements of the Inline
alignenumThe align-items of the Inline
justifyenumThe justify-content of the Inline

enum

justifyalign
"start""start"
"end""end"
"center""center"
"between"
"around"

spacingToken

spacingToken
"none"
"XXXSmall"
"XXSmall"
"XSmall"
"small"
"medium"
"large"
"XLarge"
"XXLarge"
"XXXLarge"