Usage
import { Flex } from "lambda-ui-components";
export default function App() {
return (
<Flex gap="10px" justify="center" align="center">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
</Flex>
);
}Flex component is a layout container that allows you to arrange items in rows or columns.
Experiment with all the properties of the Flex component in real time.
Direction of the flex items.
Alignment along the main axis.
Alignment along the cross axis.
Whether flex items are forced onto one line or can wrap onto multiple lines.
Gap between flex items.
import { Flex } from "lambda-ui-components";
export default function App() {
return (
<Flex gap="10px" justify="center" align="center">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
</Flex>
);
}Prop | Default | Type |
|---|---|---|
direction | "row" | "row" | "row-reverse" | "column" | "column-reverse" |
justify | "flex-start" | "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly" |
align | "flex-start" | "flex-start" | "center" | "flex-end" | "stretch" | "baseline" |
wrap | "nowrap" | "nowrap" | "wrap" | "wrap-reverse" |
gap | 0 | string | number |
children | undefined | ReactNode |