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

button-group-select.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 6 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  76f98bd9_0faf_bc2e_84db_2e0f94934a58["button-group-select.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  76f98bd9_0faf_bc2e_84db_2e0f94934a58 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  76f98bd9_0faf_bc2e_84db_2e0f94934a58 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  76f98bd9_0faf_bc2e_84db_2e0f94934a58 --> 57e86e45_ac6e_7278_be08_9092724e8401
  d431e985_324f_ebc5_0383_4b336fa5e906["button-group"]
  76f98bd9_0faf_bc2e_84db_2e0f94934a58 --> d431e985_324f_ebc5_0383_4b336fa5e906
  80cf663d_a411_487c_d69e_ac9d405cd2ec["input"]
  76f98bd9_0faf_bc2e_84db_2e0f94934a58 --> 80cf663d_a411_487c_d69e_ac9d405cd2ec
  c2fa7225_1ddd_1cbc_8810_ee5e42af14d6["select"]
  76f98bd9_0faf_bc2e_84db_2e0f94934a58 --> c2fa7225_1ddd_1cbc_8810_ee5e42af14d6
  style 76f98bd9_0faf_bc2e_84db_2e0f94934a58 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { ArrowRightIcon } from "lucide-react"

import { Button } from "@/registry/new-york-v4/ui/button"
import { ButtonGroup } from "@/registry/new-york-v4/ui/button-group"
import { Input } from "@/registry/new-york-v4/ui/input"
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
} from "@/registry/new-york-v4/ui/select"

const CURRENCIES = [
  {
    value: "$",
    label: "US Dollar",
  },
  {
    value: "€",
    label: "Euro",
  },
  {
    value: "£",
    label: "British Pound",
  },
]

export default function ButtonGroupSelect() {
  const [currency, setCurrency] = React.useState("$")

  return (
    <ButtonGroup>
      <ButtonGroup>
        <Select value={currency} onValueChange={setCurrency}>
          <SelectTrigger className="font-mono">{currency}</SelectTrigger>
          <SelectContent className="min-w-24">
            {CURRENCIES.map((currency) => (
              <SelectItem key={currency.value} value={currency.value}>
                {currency.value}{" "}
                <span className="text-muted-foreground">{currency.label}</span>
              </SelectItem>
            ))}
          </SelectContent>
        </Select>
        <Input placeholder="10.00" pattern="[0-9]*" />
      </ButtonGroup>
      <ButtonGroup>
        <Button aria-label="Send" size="icon" variant="outline">
          <ArrowRightIcon />
        </Button>
      </ButtonGroup>
    </ButtonGroup>
  )
}

Subdomains

Dependencies

  • button
  • button-group
  • input
  • lucide-react
  • react
  • select

Frequently Asked Questions

What does button-group-select.tsx do?
button-group-select.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in button-group-select.tsx?
button-group-select.tsx defines 1 function(s): ButtonGroupSelect.
What does button-group-select.tsx depend on?
button-group-select.tsx imports 6 module(s): button, button-group, input, lucide-react, react, select.
Where is button-group-select.tsx in the architecture?
button-group-select.tsx is located at apps/v4/registry/new-york-v4/examples/button-group-select.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

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

Try Supermodel Free