Home / File/ switch-sizes.tsx — ui Source File

switch-sizes.tsx — ui Source File

Architecture documentation for switch-sizes.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx DocumentationAtlas SearchAPI 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  f6d97b44_4ba5_0e4e_11e2_52314f52e07f["switch-sizes.tsx"]
  b5f68436_cf6b_fba3_fb29_abf27fd13442["field"]
  f6d97b44_4ba5_0e4e_11e2_52314f52e07f --> b5f68436_cf6b_fba3_fb29_abf27fd13442
  098564c8_4bac_7383_9c85_e180c474572e["switch"]
  f6d97b44_4ba5_0e4e_11e2_52314f52e07f --> 098564c8_4bac_7383_9c85_e180c474572e
  style f6d97b44_4ba5_0e4e_11e2_52314f52e07f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Field, FieldGroup, FieldLabel } from "@/examples/radix/ui/field"
import { Switch } from "@/examples/radix/ui/switch"

export function SwitchSizes() {
  return (
    <FieldGroup className="w-full max-w-[10rem]">
      <Field orientation="horizontal">
        <Switch id="switch-size-sm" size="sm" />
        <FieldLabel htmlFor="switch-size-sm">Small</FieldLabel>
      </Field>
      <Field orientation="horizontal">
        <Switch id="switch-size-default" size="default" />
        <FieldLabel htmlFor="switch-size-default">Default</FieldLabel>
      </Field>
    </FieldGroup>
  )
}

Subdomains

Functions

Dependencies

  • field
  • switch

Frequently Asked Questions

What does switch-sizes.tsx do?
switch-sizes.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 switch-sizes.tsx?
switch-sizes.tsx defines 1 function(s): SwitchSizes.
What does switch-sizes.tsx depend on?
switch-sizes.tsx imports 2 module(s): field, switch.
Where is switch-sizes.tsx in the architecture?
switch-sizes.tsx is located at apps/v4/examples/radix/switch-sizes.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