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.
Entity Profile
Dependency Diagram
graph LR 145e630d_30bd_04dc_3f71_6e2d6580d7d9["button-group-select.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 145e630d_30bd_04dc_3f71_6e2d6580d7d9 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 4544fa74_9b37_0912_c55e_f4ff161b8e83["button"] 145e630d_30bd_04dc_3f71_6e2d6580d7d9 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83 a6e3100c_774c_ccde_3661_3d83448167f7["button-group"] 145e630d_30bd_04dc_3f71_6e2d6580d7d9 --> a6e3100c_774c_ccde_3661_3d83448167f7 9a309fc5_4306_d01f_08ce_72db23e48652["input"] 145e630d_30bd_04dc_3f71_6e2d6580d7d9 --> 9a309fc5_4306_d01f_08ce_72db23e48652 9e04de79_0b92_db17_84ad_a529f1990b55["select"] 145e630d_30bd_04dc_3f71_6e2d6580d7d9 --> 9e04de79_0b92_db17_84ad_a529f1990b55 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 145e630d_30bd_04dc_3f71_6e2d6580d7d9 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 style 145e630d_30bd_04dc_3f71_6e2d6580d7d9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Button } from "@/examples/base/ui/button"
import { ButtonGroup } from "@/examples/base/ui/button-group"
import { Input } from "@/examples/base/ui/input"
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectTrigger,
} from "@/examples/base/ui/select"
import { ArrowRightIcon } from "lucide-react"
const CURRENCIES = [
{ label: "US Dollar", value: "$" },
{ label: "Euro", value: "€" },
{ label: "British Pound", value: "£" },
]
export default function ButtonGroupSelect() {
const [currency, setCurrency] = React.useState("$")
return (
<ButtonGroup>
<ButtonGroup>
<Select
items={CURRENCIES}
value={currency}
onValueChange={(value) => setCurrency(value as string)}
>
<SelectTrigger className="font-mono">{currency}</SelectTrigger>
<SelectContent alignItemWithTrigger={false} align="start">
<SelectGroup>
{CURRENCIES.map((item) => (
<SelectItem key={item.value} value={item.value}>
{item.value}{" "}
<span className="text-muted-foreground">{item.label}</span>
</SelectItem>
))}
</SelectGroup>
</SelectContent>
</Select>
<Input placeholder="10.00" pattern="[0-9]*" />
</ButtonGroup>
<ButtonGroup>
<Button aria-label="Send" size="icon" variant="outline">
<ArrowRightIcon />
</Button>
</ButtonGroup>
</ButtonGroup>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- button-group
- input
- lucide-react
- react
- select
Source
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 DocumentationAtlas domain, ContentSourcing 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/examples/base/button-group-select.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free