toggle-group-font-weight-selector.tsx — ui Source File
Architecture documentation for toggle-group-font-weight-selector.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 3a4f16fd_6154_2934_05c4_0b83c94ab766["toggle-group-font-weight-selector.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 3a4f16fd_6154_2934_05c4_0b83c94ab766 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 b5f68436_cf6b_fba3_fb29_abf27fd13442["field"] 3a4f16fd_6154_2934_05c4_0b83c94ab766 --> b5f68436_cf6b_fba3_fb29_abf27fd13442 58e54a2f_a43f_4a51_fbfd_96c563fbe83a["toggle-group"] 3a4f16fd_6154_2934_05c4_0b83c94ab766 --> 58e54a2f_a43f_4a51_fbfd_96c563fbe83a style 3a4f16fd_6154_2934_05c4_0b83c94ab766 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Field, FieldDescription, FieldLabel } from "@/examples/radix/ui/field"
import { ToggleGroup, ToggleGroupItem } from "@/examples/radix/ui/toggle-group"
export function ToggleGroupFontWeightSelector() {
const [fontWeight, setFontWeight] = React.useState("normal")
return (
<Field>
<FieldLabel>Font Weight</FieldLabel>
<ToggleGroup
type="single"
value={fontWeight}
onValueChange={(value) => setFontWeight(value)}
variant="outline"
spacing={2}
size="lg"
>
<ToggleGroupItem
value="light"
aria-label="Light"
className="flex size-16 flex-col items-center justify-center rounded-xl"
>
<span className="text-2xl leading-none font-light">Aa</span>
<span className="text-muted-foreground text-xs">Light</span>
</ToggleGroupItem>
<ToggleGroupItem
value="normal"
aria-label="Normal"
className="flex size-16 flex-col items-center justify-center rounded-xl"
>
<span className="text-2xl leading-none font-normal">Aa</span>
<span className="text-muted-foreground text-xs">Normal</span>
</ToggleGroupItem>
<ToggleGroupItem
value="medium"
aria-label="Medium"
className="flex size-16 flex-col items-center justify-center rounded-xl"
>
<span className="text-2xl leading-none font-medium">Aa</span>
<span className="text-muted-foreground text-xs">Medium</span>
</ToggleGroupItem>
<ToggleGroupItem
value="bold"
aria-label="Bold"
className="flex size-16 flex-col items-center justify-center rounded-xl"
>
<span className="text-2xl leading-none font-bold">Aa</span>
<span className="text-muted-foreground text-xs">Bold</span>
</ToggleGroupItem>
</ToggleGroup>
<FieldDescription>
Use{" "}
<code className="bg-muted rounded-md px-1 py-0.5 font-mono">
font-{fontWeight}
</code>{" "}
to set the font weight.
</FieldDescription>
</Field>
)
}
Domain
Subdomains
Functions
Dependencies
- field
- react
- toggle-group
Source
Frequently Asked Questions
What does toggle-group-font-weight-selector.tsx do?
toggle-group-font-weight-selector.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in toggle-group-font-weight-selector.tsx?
toggle-group-font-weight-selector.tsx defines 1 function(s): ToggleGroupFontWeightSelector.
What does toggle-group-font-weight-selector.tsx depend on?
toggle-group-font-weight-selector.tsx imports 3 module(s): field, react, toggle-group.
Where is toggle-group-font-weight-selector.tsx in the architecture?
toggle-group-font-weight-selector.tsx is located at apps/v4/examples/radix/toggle-group-font-weight-selector.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, 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