Appearance
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 ​
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
spacing | spacing | ResponsiveValue<number | string> | 0 | Flex 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). |
alignItems | align-items | 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline' | — | Cross-axis alignment of stack children. |
justifyContent | justify-content | 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly' | — | Main-axis alignment of stack children. |
useFlexGap | use-flex-gap | boolean | true | Whether to use CSS flex gap for spacing. |
Slots ​
| Name | Description |
|---|---|
(default) | Default slot for content |
CSS Custom Properties ​
| Property | Default |
|---|---|
--flint-stack-spacing | 0px |