checkbox-example.tsx — ui Source File
Architecture documentation for checkbox-example.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7abc87f0_d378_e3cc_beb2_c7b80257b0a5["checkbox-example.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 7abc87f0_d378_e3cc_beb2_c7b80257b0a5 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 f56be340_a522_c6f7_dec3_5906873d14c8["example"] 7abc87f0_d378_e3cc_beb2_c7b80257b0a5 --> f56be340_a522_c6f7_dec3_5906873d14c8 d0febd7f_7a12_3e29_549e_74cdec6501df["checkbox"] 7abc87f0_d378_e3cc_beb2_c7b80257b0a5 --> d0febd7f_7a12_3e29_549e_74cdec6501df 8a527dea_9425_3da4_8ceb_ec3058568dc9["field"] 7abc87f0_d378_e3cc_beb2_c7b80257b0a5 --> 8a527dea_9425_3da4_8ceb_ec3058568dc9 b862a1f0_438f_a580_b148_3fd0fb4b8a95["table"] 7abc87f0_d378_e3cc_beb2_c7b80257b0a5 --> b862a1f0_438f_a580_b148_3fd0fb4b8a95 style 7abc87f0_d378_e3cc_beb2_c7b80257b0a5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import {
Example,
ExampleWrapper,
} from "@/registry/bases/base/components/example"
import { Checkbox } from "@/registry/bases/base/ui/checkbox"
import {
Field,
FieldContent,
FieldDescription,
FieldGroup,
FieldLabel,
FieldTitle,
} from "@/registry/bases/base/ui/field"
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from "@/registry/bases/base/ui/table"
export default function CheckboxExample() {
return (
<ExampleWrapper>
<CheckboxBasic />
<CheckboxWithDescription />
<CheckboxInvalid />
<CheckboxDisabled />
<CheckboxWithTitle />
<CheckboxInTable />
<CheckboxGroup />
</ExampleWrapper>
)
}
function CheckboxBasic() {
return (
<Example title="Basic">
<Field orientation="horizontal">
<Checkbox id="terms" />
<FieldLabel htmlFor="terms">Accept terms and conditions</FieldLabel>
</Field>
</Example>
)
}
function CheckboxWithDescription() {
return (
<Example title="With Description">
<Field orientation="horizontal">
<Checkbox id="terms-2" defaultChecked />
<FieldContent>
<FieldLabel htmlFor="terms-2">Accept terms and conditions</FieldLabel>
<FieldDescription>
By clicking this checkbox, you agree to the terms and conditions.
// ... (201 more lines)
Domain
Subdomains
Functions
Dependencies
- checkbox
- example
- field
- react
- table
Source
Frequently Asked Questions
What does checkbox-example.tsx do?
checkbox-example.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in checkbox-example.tsx?
checkbox-example.tsx defines 8 function(s): CheckboxBasic, CheckboxDisabled, CheckboxExample, CheckboxGroup, CheckboxInTable, CheckboxInvalid, CheckboxWithDescription, CheckboxWithTitle.
What does checkbox-example.tsx depend on?
checkbox-example.tsx imports 5 module(s): checkbox, example, field, react, table.
Where is checkbox-example.tsx in the architecture?
checkbox-example.tsx is located at apps/v4/registry/bases/base/examples/checkbox-example.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free