# Grid
Lightweight grid wrapper for plugin item layouts.

## Import/Installation

<Tabs items={[{ label: 'Package', value: 'package' }, { label: 'Registry', value: 'registry' }]}>
  <TabsContent value="package">
    ```tsx
    import { Grid } from "@lottiefiles/creator-plugins-ui";
    ```
  </TabsContent>

  <TabsContent value="registry">
    ```bash
    npx shadcn@latest add @lottiefiles/grid
    ```
  </TabsContent>
</Tabs>

## Preview

<iframe src="https://creator-plugins-ds.lottiefiles.com/?story=grid-empty-spinner--grid--default-4-columns-&mode=preview" style={{ width: "100%", border: "1px solid rgba(128, 128, 128, 0.4)", borderRadius: "8px" }} height="288" title="Grid component live preview" frameBorder="no" loading="lazy" />

## Usage

```tsx
<Grid columns={3} gap="sm">
  ...
</Grid>
```

## Props

<PropsTable
  props={[
  {
    name: "columns",
    type: "1 | 2 | 3 | 4 | 5 | 6",
    default: "4",
    description: "Number of columns in the grid.",
  },
  {
    name: "gap",
    type: '"none" | "sm" | "default" | "md" | "lg"',
    default: '"default"',
    description: "Spacing between grid items.",
  },
]}
/>
