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

col-12
col-6
col-6
col-4
col-4
col-4
col-auto
col

Spacing

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

gutter-default
gutter-default
gutter-default
gutter-0
gutter-0
gutter-0
gutter-4
gutter-4
gutter-4
gutter-8
gutter-8
gutter-8

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.

default
default
default
center
center
center
end
end
end
default
default
default
center
center
center
end
end
end

Order

Columns can be re-arranged by set order value.

col #1
col #2
col #3

Responsive

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

col #1
col #2
col #3

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: 10/25/2022, 10:49:44 AM
Contributors: Tam Mai