Skip to content

Stack ​

Row

Loading...

Column

Loading...
  • Tag: <flint-stack>
  • Class: FlintStack

Import ​

ts
import '@getufy/flint-ui'; // auto-registers all
// or
import { FlintStack } from '@getufy/flint-ui';

Usage ​

html
<flint-stack></flint-stack>

Properties ​

PropertyAttributeTypeDefaultDescription
directiondirectionResponsiveValue&lt;'row' | 'row-reverse' | 'column' | 'column-reverse'&gt;'column'Flex direction of the stack layout.
spacingspacingResponsiveValue&lt;number | string&gt;0Space between child items. Numeric values use an 8px multiplier (e.g. 2 = 16px).
gapgapResponsiveValue&lt;number | string&gt; | undefined—Alias for spacing. Space between child items.
alignItemsalignItems'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline' | undefined—Cross-axis alignment of stack children.
justifyContentjustifyContent'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly' | undefined—Main-axis alignment of stack children.
useFlexGapuseFlexGapbooleantrueWhether to use CSS flex gap for spacing.

CSS Parts ​

NameDescription
baseThe component's base wrapper element.

CSS Custom Properties ​

PropertyDefault
--flint-stack-spacing0px