select-align-item.tsx — ui Source File
Architecture documentation for select-align-item.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 44d158c9_c691_ee7a_30a0_bed4b36954b4["select-align-item.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 44d158c9_c691_ee7a_30a0_bed4b36954b4 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 b5f68436_cf6b_fba3_fb29_abf27fd13442["field"] 44d158c9_c691_ee7a_30a0_bed4b36954b4 --> b5f68436_cf6b_fba3_fb29_abf27fd13442 d7940e38_2a13_bbd2_a77a_58753570dfd5["select"] 44d158c9_c691_ee7a_30a0_bed4b36954b4 --> d7940e38_2a13_bbd2_a77a_58753570dfd5 098564c8_4bac_7383_9c85_e180c474572e["switch"] 44d158c9_c691_ee7a_30a0_bed4b36954b4 --> 098564c8_4bac_7383_9c85_e180c474572e style 44d158c9_c691_ee7a_30a0_bed4b36954b4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import {
Field,
FieldContent,
FieldDescription,
FieldGroup,
FieldLabel,
} from "@/examples/radix/ui/field"
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/examples/radix/ui/select"
import { Switch } from "@/examples/radix/ui/switch"
export function SelectAlignItem() {
const [alignItemWithTrigger, setAlignItemWithTrigger] = React.useState(true)
return (
<FieldGroup className="w-full max-w-xs">
<Field orientation="horizontal">
<FieldContent>
<FieldLabel htmlFor="align-item">Align Item</FieldLabel>
<FieldDescription>
Toggle to align the item with the trigger.
</FieldDescription>
</FieldContent>
<Switch
id="align-item"
checked={alignItemWithTrigger}
onCheckedChange={setAlignItemWithTrigger}
/>
</Field>
<Field>
<Select defaultValue="banana">
<SelectTrigger>
<SelectValue />
</SelectTrigger>
<SelectContent
position={alignItemWithTrigger ? "item-aligned" : "popper"}
>
<SelectGroup>
<SelectItem value="apple">Apple</SelectItem>
<SelectItem value="banana">Banana</SelectItem>
<SelectItem value="blueberry">Blueberry</SelectItem>
<SelectItem value="grapes">Grapes</SelectItem>
<SelectItem value="pineapple">Pineapple</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</Field>
</FieldGroup>
)
}
Domain
Subdomains
Functions
Dependencies
- field
- react
- select
- switch
Source
Frequently Asked Questions
What does select-align-item.tsx do?
select-align-item.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 select-align-item.tsx?
select-align-item.tsx defines 1 function(s): SelectAlignItem.
What does select-align-item.tsx depend on?
select-align-item.tsx imports 4 module(s): field, react, select, switch.
Where is select-align-item.tsx in the architecture?
select-align-item.tsx is located at apps/v4/examples/radix/select-align-item.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