halaska-studio

Popover

Forms

About

A click-triggered floating panel anchored to its trigger button, used to show contextual details, settings, or a quick inline form without navigating away from the page.

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

Code

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

Usage.tsx

"use client";

import Popover from "@/components/ui/popover";
import Button from "@/components/ui/popover-utils/button";
import Stack from "@/components/ui/popover-utils/stack";
import TextInput from "@/components/ui/popover-utils/text-input";
import Text from "@/components/ui/popover-utils/text";
import { useState } from "react";

export default function PopoverFieldDemo() {
  const [note, setNote] = useState("");
  return (
    <div className="flex items-center justify-center w-full h-full min-h-[320px] p-10">
      <Popover
        trigger={
          <Button variant="outline" icon="+">
            Add note
          </Button>
        }
      >
        <Stack gap={12} style={{ width: 240 }}>
          <TextInput
            label="Internal note"
            value={note}
            onChange={setNote}
            placeholder="Visible to Northwind only"
          />
          <Text size="sm" secondary>
            {note ? `${note.length} characters` : "Saved to ticket #4821."}
          </Text>
        </Stack>
      </Popover>
    </div>
  );
}

More by halaska-studio

View all
  • Dot Grid

    Dot Grid

    24
  • Orb

    Orb

    15
  • Segmented Control

    Segmented Control

    8
  • Choicebox

    Choicebox

    6
  • Combobox

    Combobox

    5
  • Dialog

    Dialog

    4
  • Input OTP

    Input OTP

    4
  • Table

    Table

    2

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 2

    Login 2

    7
  • Authentication Card

    Authentication Card

    47
  • Login 1

    Login 1

    52
  • Contact Card

    Contact Card

    1K
  • Login Form

    Login Form

    6
  • Form

    Form

    16
  • Book A Demo 3

    Book A Demo 3

    83