appearance-settings.tsx — ui Source File
Architecture documentation for appearance-settings.tsx, a tsx file in the ui codebase. 8 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR c89e98dc_cf11_cf26_f5f8_e583815ecf63["appearance-settings.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] c89e98dc_cf11_cf26_f5f8_e583815ecf63 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 4b1d2128_46d9_46f0_b915_b6e1925b7876["button"] c89e98dc_cf11_cf26_f5f8_e583815ecf63 --> 4b1d2128_46d9_46f0_b915_b6e1925b7876 18f6542f_51e6_ba81_129a_f0eef8a35168["button-group"] c89e98dc_cf11_cf26_f5f8_e583815ecf63 --> 18f6542f_51e6_ba81_129a_f0eef8a35168 b5f68436_cf6b_fba3_fb29_abf27fd13442["field"] c89e98dc_cf11_cf26_f5f8_e583815ecf63 --> b5f68436_cf6b_fba3_fb29_abf27fd13442 9af00736_7b63_3c3c_87d0_68c5200c5d80["input"] c89e98dc_cf11_cf26_f5f8_e583815ecf63 --> 9af00736_7b63_3c3c_87d0_68c5200c5d80 49324200_de94_25c3_5155_08b8655881b5["radio-group"] c89e98dc_cf11_cf26_f5f8_e583815ecf63 --> 49324200_de94_25c3_5155_08b8655881b5 098564c8_4bac_7383_9c85_e180c474572e["switch"] c89e98dc_cf11_cf26_f5f8_e583815ecf63 --> 098564c8_4bac_7383_9c85_e180c474572e 39a0d62e_8e7d_d097_eb95_91d2bca361f7["icons-react"] c89e98dc_cf11_cf26_f5f8_e583815ecf63 --> 39a0d62e_8e7d_d097_eb95_91d2bca361f7 53860de0_4d86_dc1d_c85a_07c01f0d1a07["index.tsx"] 53860de0_4d86_dc1d_c85a_07c01f0d1a07 --> c89e98dc_cf11_cf26_f5f8_e583815ecf63 style c89e98dc_cf11_cf26_f5f8_e583815ecf63 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Button } from "@/examples/radix/ui/button"
import { ButtonGroup } from "@/examples/radix/ui/button-group"
import {
Field,
FieldContent,
FieldDescription,
FieldGroup,
FieldLabel,
FieldLegend,
FieldSeparator,
FieldSet,
FieldTitle,
} from "@/examples/radix/ui/field"
import { Input } from "@/examples/radix/ui/input"
import { RadioGroup, RadioGroupItem } from "@/examples/radix/ui/radio-group"
import { Switch } from "@/examples/radix/ui/switch"
import { IconMinus, IconPlus } from "@tabler/icons-react"
export function AppearanceSettings() {
const [gpuCount, setGpuCount] = React.useState(8)
const handleGpuAdjustment = React.useCallback((adjustment: number) => {
setGpuCount((prevCount) =>
Math.max(1, Math.min(99, prevCount + adjustment))
)
}, [])
const handleGpuInputChange = React.useCallback(
(e: React.ChangeEvent<HTMLInputElement>) => {
const value = parseInt(e.target.value, 10)
if (!isNaN(value) && value >= 1 && value <= 99) {
setGpuCount(value)
}
},
[]
)
return (
<FieldSet>
<FieldGroup>
<FieldSet>
<FieldLegend>Compute Environment</FieldLegend>
<FieldDescription>
Select the compute environment for your cluster.
</FieldDescription>
<RadioGroup defaultValue="kubernetes">
<FieldLabel htmlFor="kubernetes-r2h">
<Field orientation="horizontal">
<FieldContent>
<FieldTitle>Kubernetes</FieldTitle>
<FieldDescription>
Run GPU workloads on a K8s configured cluster. This is the
default.
</FieldDescription>
</FieldContent>
<RadioGroupItem
value="kubernetes"
// ... (75 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- button-group
- field
- icons-react
- input
- radio-group
- react
- switch
Imported By
Source
Frequently Asked Questions
What does appearance-settings.tsx do?
appearance-settings.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 appearance-settings.tsx?
appearance-settings.tsx defines 1 function(s): AppearanceSettings.
What does appearance-settings.tsx depend on?
appearance-settings.tsx imports 8 module(s): button, button-group, field, icons-react, input, radio-group, react, switch.
What files import appearance-settings.tsx?
appearance-settings.tsx is imported by 1 file(s): index.tsx.
Where is appearance-settings.tsx in the architecture?
appearance-settings.tsx is located at apps/v4/app/(app)/(root)/components/appearance-settings.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/app/(app)/(root)/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free