Flex API
import { Flex } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
align | Responsive<CssValue> | |
columnGap | Responsive<CssValue> | |
direction | Responsive<'row' | 'column' | 'row-reverse' | 'column-reverse'> | |
display | Responsive<'flex' | 'inline-flex' | CssValue> | |
gap | Responsive<CssValue> | |
headless | boolean | |
justify | Responsive<CssValue> | |
rowGap | Responsive<CssValue> | |
wrap | Responsive<CssValue> |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-flex>
Flex renders the ui-flex custom element from @editora/ui-core, which can also be used without React.
Attributes: classname, headless