# Portfolio Contact Section: Popup Trigger Contact

A button that opens the contact form in a modal dialog, keeping the page clean. Good for portfolios where you want the form hidden until a visitor asks.

- Page: https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-contact-sections/popup-trigger-contact
- Collection: [Portfolio](https://www.shadcn-ui-blocks.com/blocks/portfolio), Free tier
- Group: [Contact Sections](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-contact-sections)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-contact-sections/popup-trigger-contact.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/portfolio-portfolio-contact-sections-popup-trigger-contact
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/portfolio-portfolio-contact-sections-popup-trigger-contact.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, dialog, input, label, textarea
- Installs to: `@/components/blocks/portfolio/portfolio-contact-sections/popup-trigger-contact`

## About this block

Popup Trigger Contact keeps the page surface clean. The section centers a
bold heading, a short inviting paragraph, and a single "Contact Me" button
with a mail icon. A fallback email address sits below the button in smaller
muted text. Clicking the button opens a modal dialog containing a labeled
name field, an email field, a four-row message textarea, and a full-width
submit button. A second trigger lives as a fixed circular icon button pinned
to the bottom-right corner of the viewport, giving visitors a persistent
shortcut to the same form without cluttering the page layout.

Both the centered section copy and the floating button open identical dialog
forms, so the contact path is always one click away regardless of where the
visitor is on the page. The heading, paragraph, fallback email address, and
the form field labels are all plain text you can swap freely. You can also
drop the floating button entirely if a single trigger is enough.

## When to use

This layout fits portfolio pages where the contact section sits at the end
of a long scroll. For a project management workspace where collaborators and
potential clients browse a showcase before deciding to reach out, keeping
the form tucked in a dialog prevents a heavy form from interrupting the
work on display. It works better than an always-visible form when the page
already carries a lot of content and you want the contact step to feel
optional and low pressure rather than insistent.

A natural flow around it on a Portfolio page:

**Before**

- [Featured Work Highlights](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-featured-work-highlights)
  to show the work that motivates the visitor to reach out
- [Why Work With Me](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-why-work-with-me) to build
  confidence just before the contact moment

**After**

- A short footer or the
  [CTA Banner](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-cta-banner) group if you want a
  persistent nudge below the contact section

## What you can customize

The block has two independent trigger surfaces plus a form that appears in
both. A few ways to adapt them:

- **The page section copy.** Rewrite the heading and paragraph to match your
  tone, and point the fallback email address at a real inbox so visitors have
  a direct path if they prefer not to use the form.
- **The floating button.** Remove the fixed circular button if your page
  is short or already has a sticky navigation element, keeping only the
  centered trigger so nothing competes for the corner.
- **The dialog form fields.** Add a subject line input or a project budget
  select between the email and message fields to pre-qualify inquiries before
  they land in your inbox.

> Tip: wire both form instances to the same submission handler so replies
> land in one place regardless of which trigger the visitor used.

## More in Portfolio Contact Sections

- [Classic Contact Form](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-contact-sections/classic-contact-form)
- [Map With Contact Info](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-contact-sections/map-with-contact-info)
- [Minimal Form With Social](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-contact-sections/minimal-form-with-social)
- [Split Layout](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-contact-sections/split-layout)
