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 bc4dd4a3_3802_c072_36f2_265fd2bdee0f["checkbox-example.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] bc4dd4a3_3802_c072_36f2_265fd2bdee0f --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 da02b53a_0c1d_d1a1_af31_74d99f1cdd7a["example"] bc4dd4a3_3802_c072_36f2_265fd2bdee0f --> da02b53a_0c1d_d1a1_af31_74d99f1cdd7a 8b64d6be_c781_e1ef_267f_df08225927fd["checkbox"] bc4dd4a3_3802_c072_36f2_265fd2bdee0f --> 8b64d6be_c781_e1ef_267f_df08225927fd e2659e08_4bcd_4a08_ab57_ce3a18c3b284["field"] bc4dd4a3_3802_c072_36f2_265fd2bdee0f --> e2659e08_4bcd_4a08_ab57_ce3a18c3b284 4f19d174_b0a9_de73_b0ea_f16375cf68a6["table"] bc4dd4a3_3802_c072_36f2_265fd2bdee0f --> 4f19d174_b0a9_de73_b0ea_f16375cf68a6 style bc4dd4a3_3802_c072_36f2_265fd2bdee0f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import {
Example,
ExampleWrapper,
} from "@/registry/bases/radix/components/example"
import { Checkbox } from "@/registry/bases/radix/ui/checkbox"
import {
Field,
FieldContent,
FieldDescription,
FieldGroup,
FieldLabel,
FieldTitle,
} from "@/registry/bases/radix/ui/field"
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from "@/registry/bases/radix/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, ChartRegistry 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/radix/examples/checkbox-example.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free