You are currently viewing outdated (<=3.x) Chameleon documentation on our old website. For version >=4.x, check out our new website.

Current release: 3.5.0 | hub

components

Flex (code)

Flex components can be used to wrap a set of other elements in a flexible way. It's an extension of Box.

Just flexing
import { Flex } from '@mediahuis/chameleon-react'

Props

NameTypeDefaultRequiredDescription
alignContent'center''flex-end''flex-start''space-around''space-between''space-evenly''stretch'Array<String>{ "xs": "String" "sm": "String" "md": "String" "lg": "String" "xl": "String" }--Flex alignContent.
alignItems'baseline''center''flex-end''flex-start''stretch'Array<String>{ "xs": "String" "sm": "String" "md": "String" "lg": "String" "xl": "String" }--Flex alignItems.
classNameString--Extend classNames.
display'flex''inline-flex''flex'-Display flex or inline-flex
flexDirection'column-reverse''column''row-reverse''row'Array<String>{ "xs": "String" "sm": "String" "md": "String" "lg": "String" "xl": "String" }--Flex flexDirection.
flexWrap'nowrap''wrap''wrap-reverse'Array<String>{ "xs": "String" "sm": "String" "md": "String" "lg": "String" "xl": "String" }--Flex flexWrap.
justifyContent'center''flex-end''flex-start''space-around''space-between''stretch''space-evenly'Array<String>{ "xs": "String" "sm": "String" "md": "String" "lg": "String" "xl": "String" }--Flex justifyContent.

System Props

System Props

Next to the properties listed in the propstable, a collection of system props can be added to any component for further general styling and layouting purposes. These props vary per component.

To read more about the system, click here to check out its dedicated page.

alignContent

Responsive { }

Responsive [ ]

alignItems

Responsive { }

Responsive [ ]

flexDirection

Responsive { }

Responsive [ ]

flexWrap

Responsive { }

Responsive [ ]

justifyContent

Responsive { }

Responsive [ ]

© Copyright 2020 Mediahuis NV. All rights Reserved