Skip to main content

Grid

A layout component for organizing content into rows and columns.

github
View source code
import { Grid } from '@uhg-abyss/mobile';

Space​

Use the space prop to determine the amount of space between elements in the grid.

Span​

Number​

Regardless of viewport width, the span will remain the same for these columns. Change the span by using [column spans] of the parent container.

Percent​

Regardless of viewport width, the span will remain the same for these columns. Change the span by using percentages of the parent container.

Grid Props​

NameTypeDefaultRequiredDescription
children
React.ReactNode | undefined
--
The contents of the grid component
columns
number | undefined
12
-
The number of columns in the grid
space
Abyss.Space | undefined
'$semantic.spacing.sm'
-
Determines the amount of space between elements in the grid
span
number | string | undefined
12
-
Handles the span size of the grid

Grid.Col Props​

NameTypeDefaultRequiredDescription
children
React.ReactNode | undefined
--
The contents of the grid col component
span
number | string | undefined
--
Handles the span size of the column

Grid Classes​

Class NameDescription
abyss-grid-rootGrid root element

Grid.Col Classes​

Class NameDescription
abyss-grid-col-rootGrid column element
Table of Contents