# ContactBento

> Grid bento com o formulário de contato como tile principal e tiles satélite — composto de ds-bento-grid e ds-contact-form.

A shadcn/ui block from the [@lema-ds](https://ds.lema.ufpb.br) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/lema-ds/ds-contact-bento).

- Page, with a live preview: https://shadcn.exchange/r/lema-ds/ds-contact-bento
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/lema-ds/ds-contact-bento-light-974e46eeed205129.png
- Registry item: https://ds.lema.ufpb.br/r/ds-contact-bento.json
- Categories: contact, bento
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ds.lema.ufpb.br/r/ds-contact-bento.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@lema-ds/ds-bento-grid`, `@lema-ds/ds-contact-form`

## Files

### `components/ds/ds-contact-bento.tsx`

```tsx
import * as React from "react"

import { BentoGrid, BentoGridItem } from "./ds-bento-grid"
import { ContactForm, type ContactFormProps } from "./ds-contact-form"

// ── Types ──

export interface ContactBentoProps extends React.HTMLAttributes<HTMLDivElement> {
  formProps?: ContactFormProps
  /** Additional `BentoGridItem` tiles rendered beside the form (office locations, stats...). */
  children?: React.ReactNode
}

// ── Component ──

/**
 * A bento grid with a contact form as its hero tile, plus any number of
 * satellite tiles — composed from `BentoGrid` and `ContactForm`.
 */
export function ContactBento({
  formProps,
  children,
  className,
  ...props
}: ContactBentoProps) {
  return (
    <BentoGrid className={className} data-slot="contact-bento" {...props}>
      <BentoGridItem
        colSpan={2}
        rowSpan={2}
        className="items-stretch justify-center"
      >
        <ContactForm {...formProps} />
      </BentoGridItem>
      {children}
    </BentoGrid>
  )
}
```
