Skip to contentSkip to navigationSkip to topbar
Paste assistant Assistant
Figma
Star

Grid

Version 8.1.1GithubStorybook

A flex-based horizontal grid system used to build layouts.

Installation

Installation page anchor
yarn add @twilio-paste/grid - or - yarn add @twilio-paste/core
import {Grid, Column} from '@twilio-paste/core/grid';

const Component = () => (
  <Grid>
    <Column>Foo</Column>
  </Grid>
);

Grid

Grid page anchor

alignContent

Type
any

as

Type
keyof IntrinsicElements

count

Type
number

element

Overrides the default element name to apply unique styles with the Customization Provider

Type
any
Default
'COLUMN'

gutter

Type
any

marginLeft

Type
any

minWidth

Type
any

offset

Sets the left margin of a Column (how many columns a column is offset)

Type
any

span

Sets the width of a column by defining the number of columns that column can span

Type
any

stretchColumnContent

Type
boolean

vertical

Type
any

width

Type
any