Skip to main content
Version: v9

ion-col

shadow

Columns are cellular components of the grid system and go inside of a row. They will expand to fill the row. All content within a grid should go inside of a column.

See the grid documentation for more information.

Column Alignment

By default, columns will stretch to fill the entire height of the row. Columns are flex items, so there are several CSS classes that can be applied to a column to customize this behavior.

Properties

mode

DescriptionThe mode determines the platform behaviors of the component.

This is a virtual property that is set once during initialization and will not update if you change its value after the initial render.
Attributemode
Type"ios" | "md"
Defaultundefined

offset

DescriptionThe amount to offset the column, in terms of how many columns it should shift to the end of the total available.
Attributeoffset
Typestring | undefined
Defaultundefined

offsetLg

DescriptionThe amount to offset the column for lg screens, in terms of how many columns it should shift to the end of the total available.
Attributeoffset-lg
Typestring | undefined
Defaultundefined

offsetMd

DescriptionThe amount to offset the column for md screens, in terms of how many columns it should shift to the end of the total available.
Attributeoffset-md
Typestring | undefined
Defaultundefined

offsetSm

DescriptionThe amount to offset the column for sm screens, in terms of how many columns it should shift to the end of the total available.
Attributeoffset-sm
Typestring | undefined
Defaultundefined

offsetXl

DescriptionThe amount to offset the column for xl screens, in terms of how many columns it should shift to the end of the total available.
Attributeoffset-xl
Typestring | undefined
Defaultundefined

offsetXs

DescriptionThe amount to offset the column for xs screens, in terms of how many columns it should shift to the end of the total available.
Attributeoffset-xs
Typestring | undefined
Defaultundefined

order

DescriptionThe order of the column, in terms of where the column should position itself in the columns renderer. If no value is passed, the column order implicit value will be the order in the html structure.
Attributeorder
Typestring | undefined
Defaultundefined

orderLg

DescriptionThe order of the column for lg screens, in terms of where the column should position itself in the columns renderer. If no value is passed, the column order implicit value will be the order in the html structure.
Attributeorder-lg
Typestring | undefined
Defaultundefined

orderMd

DescriptionThe order of the column for md screens, in terms of where the column should position itself in the columns renderer. If no value is passed, the column order implicit value will be the order in the html structure.
Attributeorder-md
Typestring | undefined
Defaultundefined

orderSm

DescriptionThe order of the column for sm screens, in terms of where the column should position itself in the columns renderer. If no value is passed, the column order implicit value will be the order in the html structure.
Attributeorder-sm
Typestring | undefined
Defaultundefined

orderXl

DescriptionThe order of the column for xl screens, in terms of where the column should position itself in the columns renderer. If no value is passed, the column order implicit value will be the order in the html structure.
Attributeorder-xl
Typestring | undefined
Defaultundefined

orderXs

DescriptionThe order of the column for xs screens, in terms of where the column should position itself in the columns renderer. If no value is passed, the column order implicit value will be the order in the html structure.
Attributeorder-xs
Typestring | undefined
Defaultundefined

pull (deprecated)

DescriptionThe amount to pull the column, in terms of how many columns it should shift to the start of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepull
Typestring | undefined
Defaultundefined

pullLg (deprecated)

DescriptionThe amount to pull the column for lg screens, in terms of how many columns it should shift to the start of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepull-lg
Typestring | undefined
Defaultundefined

pullMd (deprecated)

DescriptionThe amount to pull the column for md screens, in terms of how many columns it should shift to the start of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepull-md
Typestring | undefined
Defaultundefined

pullSm (deprecated)

DescriptionThe amount to pull the column for sm screens, in terms of how many columns it should shift to the start of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepull-sm
Typestring | undefined
Defaultundefined

pullXl (deprecated)

DescriptionThe amount to pull the column for xl screens, in terms of how many columns it should shift to the start of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepull-xl
Typestring | undefined
Defaultundefined

pullXs (deprecated)

DescriptionThe amount to pull the column for xs screens, in terms of how many columns it should shift to the start of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepull-xs
Typestring | undefined
Defaultundefined

push (deprecated)

DescriptionThe amount to push the column, in terms of how many columns it should shift to the end of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepush
Typestring | undefined
Defaultundefined

pushLg (deprecated)

DescriptionThe amount to push the column for lg screens, in terms of how many columns it should shift to the end of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepush-lg
Typestring | undefined
Defaultundefined

pushMd (deprecated)

DescriptionThe amount to push the column for md screens, in terms of how many columns it should shift to the end of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepush-md
Typestring | undefined
Defaultundefined

pushSm (deprecated)

DescriptionThe amount to push the column for sm screens, in terms of how many columns it should shift to the end of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepush-sm
Typestring | undefined
Defaultundefined

pushXl (deprecated)

DescriptionThe amount to push the column for xl screens, in terms of how many columns it should shift to the end of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepush-xl
Typestring | undefined
Defaultundefined

pushXs (deprecated)

DescriptionThe amount to push the column for xs screens, in terms of how many columns it should shift to the end of the total available.

Deprecated — Use the combination of size and order properties to achieve the same effect.
Attributepush-xs
Typestring | undefined
Defaultundefined

size

DescriptionThe size of the column, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
Attributesize
Typestring | undefined
Defaultundefined

sizeLg

DescriptionThe size of the column for lg screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
Attributesize-lg
Typestring | undefined
Defaultundefined

sizeMd

DescriptionThe size of the column for md screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
Attributesize-md
Typestring | undefined
Defaultundefined

sizeSm

DescriptionThe size of the column for sm screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
Attributesize-sm
Typestring | undefined
Defaultundefined

sizeXl

DescriptionThe size of the column for xl screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
Attributesize-xl
Typestring | undefined
Defaultundefined

sizeXs

DescriptionThe size of the column for xs screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
Attributesize-xs
Typestring | undefined
Defaultundefined

theme

DescriptionThe theme determines the visual appearance of the component.

This is a virtual property that is set once during initialization and will not update if you change its value after the initial render.
Attributetheme
Type"ios" | "md" | "ionic"
Defaultundefined

Events

No events available for this component.

Methods

No public methods available for this component.

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS Custom Properties

NameDescription
--col-unit-sizeThe size of each Column unit.
--ion-grid-column-paddingPadding for the Column
--ion-grid-column-padding-lgPadding for the Column on lg screens and up
--ion-grid-column-padding-mdPadding for the Column on md screens and up
--ion-grid-column-padding-smPadding for the Column on sm screens and up
--ion-grid-column-padding-xlPadding for the Column on xl screens and up
--ion-grid-column-padding-xsPadding for the Column on xs screens and up
--ion-grid-columnsThe number of total Columns in the Grid

Slots

No slots available for this component.