Components
Classes
Types
No results found.
If this is a bug, please report it.
Scroll
Open
The Grid is simply a <div> with basic grid styles preapplied. It provides a convenient shorthand for controlling common grid styles like column count and gap size using props.
<Grid columns={2} gap="md">
<div style={{ background: "red" }}>Item 1</div>
<div style={{ background: "blue" }}>Item 2</div>
</Grid>
Note: Other React frameworks are not currently supported, but they might still work. Try at your own risk.
Method | Instructions |
---|---|
LiftKit CLI |
From any Next.js project, run the following command in your terminal.
npm run add grid
content_copy
|
Github | open_in_new View on Github |
Method | Instructions |
---|---|
Webflow | open_in_new Clone from Made In Webflow |
Figma | open_in_new Clone from Figma Community |
Props unique to this component.
Name | Required | Type | Description | Default Val |
---|---|---|---|---|
autoResponsive | no | boolean | Whether the grid should automatically adjust to different screen sizes. | false |
className | no | string | Additional CSS classes to apply | undefined |
columns | no | number | The number of columns for the grid layout | undefined |
gap | no | LkSizeUnit | The spacing between grid items. Expects LkSizeUnit from 3xs to 4xl. | undefined |
Props with globally-defined behavior that are used in multiple components.
Common Props | Status |
---|---|
{children} | Supported |
Native HTML attributes | Supported |