Skip to content

Flex

Used for create one-dimensional layout model.

Import

js
import { MpFlex } from '@mekari/pixel3'

Playground

API

MpFlex

Props
Slots
NameTypeDefault
as
Rendered tag of flex.
stringdiv
direction
direction of flex.
row | row-reverse | column | column-reverserow
wrap
wrap of flex.
nowrap | wrap | wrap-reversenowrap
align
align items of flex.
center | end | flex-end | flex-start | self-end | self-start | start | baseline | normal | stretchauto
justify
justify content of flex.
space-around | space-between | space-evenly | stretch | center | end | flex-end | flex-start | start | left | normal | rightnormal
basis
basis of flex.
auto | content | fit-content | max-content | min-contentauto
grow
grow of flex.
number0
shrink
shrink of flex.
number1