Flexibel positionering

Komponent
IFlex
Status
Produktionsklar
Innehåll

Flexibel positionering används när en eller flera objekt som inte ligger i grid ska placeras bredvid varandra. Den är en ramverkskomponent för enkel hantering av en horisontal flexbox.

API

Props

gap: string Optional

Set gap (gutter) between items.

Must be one of:

  • "1x"
  • "2x"
  • "3x"
  • ...
  • "8x"

Example: a value of "3x" corresponds to a gap of 3 * 0.25 = 0.75rem.

Default: ""

collapse: boolean Optional

If set the IFlexItems will be fullwidth and stacked on top of each other when breakpoint is small (aka mobile).

Default: false

wrap: boolean Optional

If set the IFlexItems will wrap when out of space

Default: false

float: string Optional

Set how IFlexItems should float.

Must be one of:

  • "left"
  • "center"
  • "right"

Default: ""

Slots

default

Slot for IFlexItem's

Esc för att stänga Pil upp/ner för att navigera Enter för att välja