# Grid Lines

Four edge-to-edge guide lines that frame the canvas.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).



<ComponentPreview name="grid-lines" />

## Installation [#installation]

<CodeTabs>
  <TabsList>
    <TabsTrigger value="cli">
      Command
    </TabsTrigger>

    <TabsTrigger value="manual">
      Manual
    </TabsTrigger>
  </TabsList>

  <TabsContent value="cli">
    ```bash
    npx shadcn@latest add @ogimagecn/grid-lines
    ```
  </TabsContent>

  <TabsContent value="manual">
    <Steps>
      <Step>
        Copy and paste the following code into your project.
      </Step>

      <ComponentSource name="grid-lines" title="components/og/grid-lines.tsx" />

      <Step>
        Update the import paths to match your project setup.
      </Step>
    </Steps>
  </TabsContent>
</CodeTabs>

## Usage [#usage]

```tsx
import { GridLines } from "@/components/og/grid-lines";
```

```tsx
<div
  style={{
    display: "flex",
    height: "100%",
    position: "relative",
    width: "100%",
  }}
>
  <GridLines inset={64} color="#44403c" variant="dashed" />
  {/* content */}
</div>
```

## API Reference [#api-reference]

| Prop      | Type                  | Default     |
| --------- | --------------------- | ----------- |
| `inset`   | `number`              | `64`        |
| `color`   | `string`              | `"#44403c"` |
| `variant` | `"solid" \| "dashed"` | `"dashed"`  |
