Home / File/ button-group-popover.tsx — ui Source File

button-group-popover.tsx — ui Source File

Architecture documentation for button-group-popover.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx DocumentationAtlas Changelog 6 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  6e421a7d_44d8_b2c7_0dea_dc71d38cb505["button-group-popover.tsx"]
  4b1d2128_46d9_46f0_b915_b6e1925b7876["button"]
  6e421a7d_44d8_b2c7_0dea_dc71d38cb505 --> 4b1d2128_46d9_46f0_b915_b6e1925b7876
  18f6542f_51e6_ba81_129a_f0eef8a35168["button-group"]
  6e421a7d_44d8_b2c7_0dea_dc71d38cb505 --> 18f6542f_51e6_ba81_129a_f0eef8a35168
  b5f68436_cf6b_fba3_fb29_abf27fd13442["field"]
  6e421a7d_44d8_b2c7_0dea_dc71d38cb505 --> b5f68436_cf6b_fba3_fb29_abf27fd13442
  97b1d83c_62f2_f7a6_4edb_030a627d9a9d["popover"]
  6e421a7d_44d8_b2c7_0dea_dc71d38cb505 --> 97b1d83c_62f2_f7a6_4edb_030a627d9a9d
  f82546d2_9d65_5165_7279_d0fc6dc815e8["textarea"]
  6e421a7d_44d8_b2c7_0dea_dc71d38cb505 --> f82546d2_9d65_5165_7279_d0fc6dc815e8
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  6e421a7d_44d8_b2c7_0dea_dc71d38cb505 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style 6e421a7d_44d8_b2c7_0dea_dc71d38cb505 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/examples/radix/ui/button"
import { ButtonGroup } from "@/examples/radix/ui/button-group"
import { Field, FieldDescription, FieldLabel } from "@/examples/radix/ui/field"
import {
  Popover,
  PopoverContent,
  PopoverDescription,
  PopoverHeader,
  PopoverTitle,
  PopoverTrigger,
} from "@/examples/radix/ui/popover"
import { Textarea } from "@/examples/radix/ui/textarea"
import { BotIcon, ChevronDownIcon } from "lucide-react"

export default function ButtonGroupPopover() {
  return (
    <ButtonGroup>
      <Button variant="outline">
        <BotIcon /> Copilot
      </Button>
      <Popover>
        <PopoverTrigger asChild>
          <Button variant="outline" size="icon" aria-label="Open Popover">
            <ChevronDownIcon />
          </Button>
        </PopoverTrigger>
        <PopoverContent align="end" className="rounded-xl text-sm">
          <PopoverHeader>
            <PopoverTitle>Start a new task with Copilot</PopoverTitle>
            <PopoverDescription>
              Describe your task in natural language.
            </PopoverDescription>
          </PopoverHeader>
          <Field>
            <FieldLabel htmlFor="task" className="sr-only">
              Task Description
            </FieldLabel>
            <Textarea
              id="task"
              placeholder="I need to..."
              className="resize-none"
            />
            <FieldDescription>
              Copilot will open a pull request for review.
            </FieldDescription>
          </Field>
        </PopoverContent>
      </Popover>
    </ButtonGroup>
  )
}

Subdomains

Dependencies

  • button
  • button-group
  • field
  • lucide-react
  • popover
  • textarea

Frequently Asked Questions

What does button-group-popover.tsx do?
button-group-popover.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in button-group-popover.tsx?
button-group-popover.tsx defines 1 function(s): ButtonGroupPopover.
What does button-group-popover.tsx depend on?
button-group-popover.tsx imports 6 module(s): button, button-group, field, lucide-react, popover, textarea.
Where is button-group-popover.tsx in the architecture?
button-group-popover.tsx is located at apps/v4/examples/radix/button-group-popover.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free