# Guide Card

A card that offers a guide or setup flow: a faint info glow from the bottom-right corner, the icon repeated as a 3% watermark, a 40 px tile, a title and teaser, and the button that opens it. Only the button acts; the card itself is not a control.

- Beta: ready to use; its API can still change in a minor release.
- Category: Layout & surfaces

```tsx
import { GuideCard } from "@leap-crm/design-system";
```

## Best practices

- Do: Use it to offer a setup flow a firm hasn't finished, like sending enquiries into the CRM, with a teaser of one or two lines on what it sets up.
- Do: Pass a link to `render` when the guide opens another page, so the button behaves as a link.
- Do: Set `cta` to say what the button opens when several guides sit together, like "Set up webhook". The title already tells their buttons apart for screen readers.
- Don't: Make the whole card clickable. Only the button acts, so there is one focus stop with one name.
- Don't: Use it to show a record or a figure. Use `Card`, or `StatCard` for a figure; the info glow and watermark mark this card as an offer, not data.

## Keyboard

| Keys | What they do |
| --- | --- |
| Tab | Moves through its buttons in order. |
| Enter, Space | Presses the focused button. |

## Related

- [Card](./card.md)
- [Next Action Banner](./next-action-banner.md)
- [Empty State](./empty-state.md)

## Examples

What the examples import:

```tsx
import { Mail, Webhook } from "lucide-react";
import { GuideCard } from "@leap-crm/design-system";
```

### Guides

Only the button responds: press it, or Tab to it. The second opens through a link.

```tsx
<div className="flex flex-col gap-4">
  <GuideCard
    className="w-120"
    icon={<Mail />}
    title="Add our email to your form"
    teaser="Add one address to the form you already have. Works with every form builder, and nothing else changes."
  />
  <GuideCard
    className="w-120"
    icon={<Webhook />}
    title="Send enquiries with a webhook"
    teaser="Post each enquiry to your firm's address from Zapier, Make or your own site."
    cta="Set up webhook"
    render={<a href="/guide-card" />}
  />
</div>
```

## Props

onClick, disabled and render (pass a link when it navigates) go to the button.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `icon` (required) | `ReactNode` |  | The guide's icon: in the 40 px tile, and again as the faint watermark. |
| `title` (required) | `ReactNode` |  | The guide's name, in the card's heading line. |
| `teaser` (required) | `ReactNode` |  | One or two lines on what the guide sets up. |
| `cta` | `string` | `"Open guide"` | The button's words. `onClick`, `render` (a link when it navigates) and `disabled` go to this button. |
| `className` | `string` |  | Classes added to the root element, merged with its own. Tokens only. |
