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>
);
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.
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
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.