Skip to main content
Version: Next

Flex API

import { Flex } from '@editora/ui-react';

Props​

PropTypeDescription
alignResponsive<CssValue>
columnGapResponsive<CssValue>
directionResponsive<'row' | 'column' | 'row-reverse' | 'column-reverse'>
displayResponsive<'flex' | 'inline-flex' | CssValue>
gapResponsive<CssValue>
headlessboolean
justifyResponsive<CssValue>
rowGapResponsive<CssValue>
wrapResponsive<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