--- import Box from '@static/Box.astro' import ComponentWrapper from '@static/ComponentWrapper.astro' import Layout from '@static/Layout.astro' import AstroFlex from '@components/Flex/Flex.astro' import SvelteFlex from '@components/Flex/Flex.svelte' import ReactFlex from '@components/Flex/Flex.tsx' import { getSections } from '@helpers' import type { Gap, Responsive } from '@utils/getLayoutClasses' const sections = getSections({ title: 'flex items', components: [AstroFlex, SvelteFlex, ReactFlex] }) const gap: Responsive = { default: 'xxs', xs: 'xs', sm: 'sm', md: 'md', lg: 'default' } ---

Flex

To use this component, includeUtilities must not be disabled in your setup mixin. You can also use the utility classes without this component to build flexible layouts. To build grid layouts, see the Grid component.

1 2 3 1 2 3 1 2 3
{sections.map(section => (

{section.title}

{section.subTitle &&

}
1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 4 5 6 1 2 3 4 5 6
))}