Develop ultra fast with Prismane 🎉

Flex API

Learn about the Flex component's props and CSS classes.

Import

import { FlexProps } from "@prismane/core";

Props

Flex extends Box component's props.

NameTypeDescriptionDefault
justifystart / end / center / between / around / evenlyThe justifyContent CSS property of the container.-
alignstart / end / center / baseline / stretchThe alignItems CSS property of the container.-
gapstring / numberThe gap CSS property of the container.-
directionrow / row-reverse / column / column-reverseThe flexDirection CSS property of the container.-
selfauto / start / end / center / stretch / baselineThe alignSelf CSS property of the container.-
basisstring / numberThe flexBasis CSS property of the container.-
growbooleanThe flexGrow CSS property of the container.-
shrinkbooleanThe flexShrink CSS property of the container.-
wrapwrap / wrap-reverse / nowrapThe flexWrap CSS property of the container.-

CSS

Flex extends Box component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneFlex-rootThe container of the flex container.