Benjamin Swerdlow

Grok Tool

Component

About

A Grok action — compact verb+path, or a ┃ ◆ card with [hooks: N].

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

Code

How Grok Tool is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { GrokTool } from "@/components/ui/brainless-grok-tool";

export default function GrokToolDemo() {
  return (
    <div className="w-full max-w-3xl overflow-x-auto border border-[#2b2b2b] bg-[#1a1a1a] p-5 text-[#c0caf5]">
        <div className="space-y-2">
          <GrokTool verb="read" path="app/(marketing)/page.tsx" />
          <GrokTool verb="wrote" path="components/pricing.tsx" meta="+31" />
          <GrokTool
            variant="card"
            title="Run Write permission probe output file"
            hooks={3}
          />
        </div>
    </div>
  );
}

More by Benjamin Swerdlow

View all
  • Pied Piper Onboarding

    Pied Piper Onboarding

  • Grok Session

    Grok Session

  • Grok Session Active

    Grok Session Active

  • Grok Plan

    Grok Plan

  • Codex Session

    Codex Session

  • Claude Session

    Claude Session

  • Grok Slash Menu

    Grok Slash Menu

  • Codex Slash Menu

    Codex Slash Menu