mica

Example

one
two
three

Basic usage

<m-vstack gap="sm">
  <div>one</div>
  <div>two</div>
</m-vstack>

API

Attributes

NameType/ValuesDefaultDescription
gapnone · 2xs · xs · sm · md · lg · xl · 2xlmdSets the space between children.
alignstart · center · end · stretchstretchAligns children on the horizontal axis.

Styling

NameType/ValuesDefaultDescription
--gapCSS length--space-mdAccepts arbitrary spacing, for example style="--gap: 2.75rem". The attribute and custom property are the same mechanism.
← Accessibilityhstack →