Demos
No properties
FlexItem
FlexItem
FlexItem
FlexItem
Code Editor
<Layout.FlexContainer> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> </Layout.FlexContainer>
Horizontal FlexItem
FlexItem
FlexItem
FlexItem
FlexItem
Code Editor
<Layout.FlexContainer> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> </Layout.FlexContainer>
justify="center"
Horizontal FlexItem, FlexItem
FlexItem
FlexItem
FlexItem
Code Editor
<Layout.FlexContainer justify="center"> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> </Layout.FlexContainer>
justify="flex-end"
Horizontal FlexItem, FlexItem
FlexItem
FlexItem
FlexItem
Code Editor
<Layout.FlexContainer justify="flex-end"> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> </Layout.FlexContainer>
size
and grow
Horizontal with Code Editor
<Layout.Horizontal> <Layout.FlexItem size={3}> <Layout.Card>Card contents</Layout.Card> </Layout.FlexItem> <Layout.FlexItem size={4}> <Layout.Card>Card contents</Layout.Card> </Layout.FlexItem> <Layout.FlexItem size={5}> <Layout.Card>Card contents</Layout.Card> </Layout.FlexItem> <Layout.FlexItem grow> <Layout.Card>Card contents</Layout.Card> </Layout.FlexItem> <Layout.FlexItem grow> <Layout.Card>Card contents</Layout.Card> </Layout.FlexItem> <Layout.FlexItem grow> <Layout.Card>Card contents</Layout.Card> </Layout.FlexItem> </Layout.Horizontal>
Horizontal Field.String
Will wrap on small screens.
Code Editor
<Layout.FlexContainer> <Field.String label="Label" value="Foo" /> <Field.String label="Label" value="Foo" width="medium" /> </Layout.FlexContainer>
Vertical FlexItem
FlexItem
FlexItem
FlexItem
FlexItem
Code Editor
<Layout.FlexContainer direction="vertical"> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> <Layout.FlexItem> <TestElement>FlexItem</TestElement> </Layout.FlexItem> </Layout.FlexContainer>
Vertical aligned Card
Code Editor
<Layout.FlexContainer direction="vertical"> <Layout.Card>Card contents</Layout.Card> <Layout.Card>Card contents</Layout.Card> <Layout.Card>Card contents</Layout.Card> </Layout.FlexContainer>
Vertical space divider
Code Editor
<Layout.Card> <Layout.FlexContainer direction="vertical" divider="space"> <Field.String label="Label" value="Value" /> <Field.String label="Label" value="Value" /> </Layout.FlexContainer> </Layout.Card>
Vertical aligned Field.String
Code Editor
<Layout.Card> <Layout.FlexContainer direction="vertical"> <Field.String label="Label" value="Foo" /> <Field.String label="Label" value="Foo" /> </Layout.FlexContainer> </Layout.Card>