Home / File/ field-demo.tsx — ui Source File

field-demo.tsx — ui Source File

Architecture documentation for field-demo.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx DocumentationAtlas ContentSourcing 6 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  787c3e3e_87cc_c6bd_e008_746fd323796d["field-demo.tsx"]
  4544fa74_9b37_0912_c55e_f4ff161b8e83["button"]
  787c3e3e_87cc_c6bd_e008_746fd323796d --> 4544fa74_9b37_0912_c55e_f4ff161b8e83
  701738bf_cdcf_955d_1e15_8125ef50e18b["checkbox"]
  787c3e3e_87cc_c6bd_e008_746fd323796d --> 701738bf_cdcf_955d_1e15_8125ef50e18b
  e6c524b5_d047_d4f9_50b2_7f100d612cb2["field"]
  787c3e3e_87cc_c6bd_e008_746fd323796d --> e6c524b5_d047_d4f9_50b2_7f100d612cb2
  9a309fc5_4306_d01f_08ce_72db23e48652["input"]
  787c3e3e_87cc_c6bd_e008_746fd323796d --> 9a309fc5_4306_d01f_08ce_72db23e48652
  9e04de79_0b92_db17_84ad_a529f1990b55["select"]
  787c3e3e_87cc_c6bd_e008_746fd323796d --> 9e04de79_0b92_db17_84ad_a529f1990b55
  6c4f9605_1396_54b6_7795_ad1fc5372e6a["textarea"]
  787c3e3e_87cc_c6bd_e008_746fd323796d --> 6c4f9605_1396_54b6_7795_ad1fc5372e6a
  style 787c3e3e_87cc_c6bd_e008_746fd323796d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/examples/base/ui/button"
import { Checkbox } from "@/examples/base/ui/checkbox"
import {
  Field,
  FieldDescription,
  FieldGroup,
  FieldLabel,
  FieldLegend,
  FieldSeparator,
  FieldSet,
} from "@/examples/base/ui/field"
import { Input } from "@/examples/base/ui/input"
import {
  Select,
  SelectContent,
  SelectGroup,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/examples/base/ui/select"
import { Textarea } from "@/examples/base/ui/textarea"

const months = [
  { label: "MM", value: null },
  { label: "01", value: "01" },
  { label: "02", value: "02" },
  { label: "03", value: "03" },
  { label: "04", value: "04" },
  { label: "05", value: "05" },
  { label: "06", value: "06" },
  { label: "07", value: "07" },
  { label: "08", value: "08" },
  { label: "09", value: "09" },
  { label: "10", value: "10" },
  { label: "11", value: "11" },
  { label: "12", value: "12" },
]

const years = [
  { label: "YYYY", value: null },
  { label: "2024", value: "2024" },
  { label: "2025", value: "2025" },
  { label: "2026", value: "2026" },
  { label: "2027", value: "2027" },
  { label: "2028", value: "2028" },
  { label: "2029", value: "2029" },
]

export default function FieldDemo() {
  return (
    <div className="w-full max-w-md">
      <form>
        <FieldGroup>
          <FieldSet>
            <FieldLegend>Payment Method</FieldLegend>
            <FieldDescription>
              All transactions are secure and encrypted
            </FieldDescription>
            <FieldGroup>
              <Field>
// ... (115 more lines)

Subdomains

Functions

Dependencies

  • button
  • checkbox
  • field
  • input
  • select
  • textarea

Frequently Asked Questions

What does field-demo.tsx do?
field-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in field-demo.tsx?
field-demo.tsx defines 1 function(s): FieldDemo.
What does field-demo.tsx depend on?
field-demo.tsx imports 6 module(s): button, checkbox, field, input, select, textarea.
Where is field-demo.tsx in the architecture?
field-demo.tsx is located at apps/v4/examples/base/field-demo.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free