Skip to content

Stack ​

Row

Loading...

Column

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

Import ​

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

Usage ​

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

Properties ​

PropertyAttributeTypeDefaultDescription
spacingspacingResponsiveValue&lt;number | string&gt;0Flex direction of the stack layout. / converter: { fromAttribute: (value: string | null) => { if (!value) return 'column'; try { return JSON.parse(value); } catch { return value; } } } }) direction: ResponsiveValue<'row' | 'row-reverse' | 'column' | 'column-reverse'> = 'column'; /* Space between child items (1 unit = 8px).
alignItemsalign-items'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline'—Cross-axis alignment of stack children.
justifyContentjustify-content'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly'—Main-axis alignment of stack children.
useFlexGapuse-flex-gapbooleantrueWhether to use CSS flex gap for spacing.

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-stack-spacing0px