Flexibel positionering
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: stringOptional -
Set gap (gutter) between items.
Must be one of:
"1x""2x""3x"- ...
"8x"
Example: a value of
"3x"corresponds to a gap of3 * 0.25 = 0.75rem.Default:
"" -
collapse: booleanOptional -
If set the IFlexItems will be fullwidth and stacked on top of each other when breakpoint is small (aka mobile).
-
wrap: booleanOptional -
If set the IFlexItems will wrap when out of space
-
float: stringOptional -
Set how IFlexItems should float.
Must be one of:
"left""center""right"
Default:
""
Slots
-
default -
Slot for IFlexItem's