uğur sözen

Trigger to Action

Component 34

About

A two-step automation recipe card that stacks a "When" trigger row and a "Then" action row connected by a downward arrow, each with a brand-colored app icon tile and event label.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Trigger to Action to your project and fits it to your theme.

Code

How Trigger to Action is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Automation1 } from "@/components/ui/automation1";

export default function Default() {
  return (
    <Automation1
      triggerLabel="When"
      actionLabel="Then"
      trigger={{
        src: "https://cdn.21st.dev/assets/mirror/01/0108420672db82510ef69d7aa278b58e98df3eecb5e6979e321e6e4d15706ff4.jpg",
        alt: "Stripe",
        event: "Payment received",
      }}
      action={{
        src: "https://cdn.21st.dev/assets/mirror/89/89133ad724dd7585e95efb716bf631c5e87573e1f2305f018b70f6bbf0e832e4.svg",
        alt: "Slack",
        event: "Send #revenue alert",
      }}
    />
  );
}

Dependencies

More by uğur sözen

View all
  • Worth Keeping CTA

    Worth Keeping CTA

    206
  • Comparison Slider with Highlights

    Comparison Slider with Highlights

    191
  • Before/After Image Slider

    Before/After Image Slider

    121
  • Invoice History Table

    Invoice History Table

    66
  • Recipe Card

    Recipe Card

    38
  • PIN Keypad Unlock

    PIN Keypad Unlock

    34
  • Shop by Category Grid

    Shop by Category Grid

    33
  • Integration Logos Grid

    Integration Logos Grid

    24