@dxos/react-ui
    Preparing search index...

    Variable FlexConst

    Flex: ForwardRefExoticComponent<
        Omit<FlexProps & { asChild?: boolean }, "className"> & {
            classNames?: ClassNameValue;
        } & Pick<HTMLAttributes<Element>, "role" | "children" | "style"> & RefAttributes<
            HTMLDivElement,
        >,
    > = ...

    One-axis layout box: the primitive that replaces hand-written flex … wrapper divs.

    gap is restricted to the named steps of the theme spacing ramp (see Gap), which is the point of the prop — an off-ramp gap-2/gap-3 literal in a container is the drift it prevents. Anything the props don't cover (padding, sizing, overflow, colour) goes through classNames; the component deliberately grows no padding or colour props, since components own their own spacing.

    There is no implicit align. Row-centering is the common case, but defaulting it would silently restyle any consumer relying on the CSS stretch initial value.

    Use asChild to project the layout onto a semantic element (<header>, <ul>, <a>).

    <Flex column gap='sm'>…</Flex>
    <Flex gap='sm' justify='end'>…</Flex>
    <Flex center classNames='h-full text-fg-subtle' role='status'>{t('empty.message')}</Flex>