# Logo field

> A customer logo wall in real brand colors that parts around the pointer, springs back, and opens a case study from any logo.

- Type: Block
- Page: https://uiarc.dev/components/blocks/logo-field
- Markdown: https://uiarc.dev/components/blocks/logo-field/markdown

- Access: Arc Pro
- Registry id: `logo-field`
- Source file: `registry/blocks/logo-field/logo-field.tsx`
- Built from: Avatar
- Keywords: logo wall, customer logos, trusted by, case study, repel, magnetic, physics, social proof

Use this on a landing or customers page. Replace sampleBrands in logo-field-data.ts with your customers' marks, results and quotes, add an href to link each full story, and pass onOpenCaseStudy to route instead of opening the panel.

## When to use

- A customers or landing page section where logos should invite a click into proof.
- Replacing a static logo grid with something people play with.

## When not to use

- A slim trust strip under a hero; use logo-marquee.
- Long lists of partners without stories; a plain grid reads faster.

## Installation

Logo field is part of Arc Pro. The live preview is public; the source and install command need Pro.

### CLI with a Pro token

1. Create a token in your account and set it in the environment (or `.env.local`). Never commit it.

```bash
export ARC_PRO_TOKEN=arc_pro_...
```

2. Add the Pro registry to `components.json`:

```json
{
  "registries": {
    "@uiarc": "https://uiarc.dev/r/{name}.json",
    "@uiarc-pro": {
      "url": "https://uiarc.dev/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${ARC_PRO_TOKEN}"
      }
    }
  }
}
```

3. Install:

```bash
npx shadcn@latest add @uiarc-pro/logo-field
```

### Manual

Signed-in Pro members can copy the source from the Manual tab on the docs page.

- Plans: https://uiarc.dev/pricing
- Create a Pro token: https://uiarc.dev/account#pro-access
- Setup guide: https://uiarc.dev/docs/ai#pro-access

## Usage

```tsx
import { LogoField } from "@/components/arc/blocks/logo-field/logo-field";

export function Customers() {
  return (
    <LogoField
      count={1200}
      title="Used by {count} teams"
      brands={[
        { id: "acme", name: "Acme", src: "/logos/acme.svg", caseStudy: { stat: "3x", statLabel: "faster releases", quote: "We ship on Fridays now.", person: { name: "Ana Ruiz", role: "CTO", photo: "/people/ana.jpg" }, href: "/customers/acme" } },
      ]}
    />
  );
}
```

## API reference

### LogoField

A customer logo wall in real brand colors that behaves like a field: logos part around the pointer and spring back, the logo you point at grows and offers its case study, and opening one flies the mark into a panel with the result and a quote.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brands` | `LogoFieldBrand[]` | `sampleBrands` | Logos with id, name, src (color SVG) or mask (monochrome SVG drawn in the text color), and an optional caseStudy with stat, statLabel, quote, person and href. |
| `count` | `number` | `24000` | Customer count that rolls up in the heading when it comes into view. |
| `title` | `string` | `"Loved by {count} teams"` | Heading. {count} is replaced by the rolling number. |
| `description` | `string` | – | Line under the heading. |
| `onOpenCaseStudy` | `(brand: LogoFieldBrand) => boolean \| void` | – | Called when a case study opens. Return false to handle it yourself, such as routing, instead of opening the panel. |
| `className` | `string` | – | Extra class on the section. |

## Keyboard interactions

| Keys | Action |
| --- | --- |
| Tab | Moves into the grid on one logo; the field parts around it. |
| Arrow keys | Moves between logos across rows and columns. |
| Home / End | Jumps to the first or last logo. |
| Enter / Space | Opens the case study. |
| Escape | Closes the case study and returns focus to its logo. |

## Accessibility

- Logos with a case study are buttons named "Brand: read case study" with aria-haspopup="dialog"; others are plain list items.
- The case study is a labelled dialog; focus moves to its close button and returns to the logo on close.
- The rolling count keeps a hidden full value for screen readers and reserves its final width so the heading never reflows.
- Brand marks are decorative next to their visible names.

## Motion

- Each logo is a spring body that is pushed away from the pointer within about 230px and pulled home when it leaves, with a small overshoot.
- Faster pointer movement pushes up to twice as hard, so a quick swipe scatters the field.
- Only the inner layer moves; the hit areas stay on the grid, so hover never flickers.
- Opening a case study flies the mark into the panel with a shared layout animation while the field dims and blurs.
- Reduced motion turns off the field and flights; captions and the panel crossfade.

## Responsive behavior

- Six columns on wide containers, four below 760px and three below 480px.
- On touch, a tap opens the case study directly and dragging across the field parts it while vertical scroll stays available.

## Performance

- A single requestAnimationFrame loop integrates every logo and stops once they settle.
- Only transforms are written each frame, straight to the DOM without React renders.

## Notes for AI

- Use real color marks for brands that have them and mask for black or white marks so they follow the theme.
- Only brands with a caseStudy become buttons; keep the rest as plain logos rather than dead links.
- Brand marks are sample content in the preview and must not imply endorsements; use your own customers.

## Related

- [Logo marquee](https://uiarc.dev/components/blocks/logo-marquee/markdown): A quiet, continuously moving row of brand marks with a pause control.
- [Studio perspectives](https://uiarc.dev/components/blocks/testimonial-stage/markdown): Portrait led editorial stories with a focused reading state.

## Guidance for AI tools

Blocks are complete, self-contained screens with sample data. Replace the sample data and connect the callbacks described above. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://uiarc.dev/llms.txt
