Grid System

Quickly and easily create layouts with the basic 12-column.

TIP

The component uses flex layout by default, no need to set type="flex" manually.

Please note that the parent container should avoid using inline related styles, which will cause the component to not fill up its width.

Basic

Spacing

Row provides gutter attribute to specify spacings between columns, and its default value is 6.

Alignment

Default use the flex layout to make flexible alignment of columns.

You can define the layout of child elements by setting justify attribute with start, center, end, space-between, space-around or space-evenly.

Order

Columns can be re-arranged by set order value.

Responsive

Set different column spans for each breakpoints. Resize browser to see them in action.

Row Attributes

AttributeDescriptionTypeAccepted ValuesDefault
guttergrid spacingnumber6
justifyhorizontal alignment of flex layoutstringstart/center/end/space-around/space-between/space-evenlystart
itemsvertical alignment of flex layoutstringstart/center/endstart
tagcustom element tagstring*div

Row Slots

NameDescriptionSubtags
customize default contentCol

Col Attributes

AttributeDescriptionTypeAccepted ValuesDefault
spannumber of column the grid spansnumber12
orderreorder columns in the gridnumber0
xs<768px Responsive columns or column props objectnumber/object (e.g. {span: 4, order: 4})
sm≥768px Responsive columns or column props objectnumber/object (e.g. {span: 4, order: 4})
md≥992px Responsive columns or column props objectnumber/object (e.g. {span: 4, order: 4})
lg≥1200px Responsive columns or column props objectnumber/object (e.g. {span: 4, order: 4})
xl≥1400px Responsive columns or column props objectnumber/object (e.g. {span: 4, order: 4})
tagcustom element tagstring*div

Col Slots

NameDescription
customize default content
Last Updated:
Contributors: Tam Mai