Home / File/ input-example.tsx — ui Source File

input-example.tsx — ui Source File

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

File tsx ComponentRegistry UIPrimitives 6 imports 11 functions

Entity Profile

Dependency Diagram

graph LR
  87e902db_d09e_d63e_d96a_582b4eb4c286["input-example.tsx"]
  f56be340_a522_c6f7_dec3_5906873d14c8["example"]
  87e902db_d09e_d63e_d96a_582b4eb4c286 --> f56be340_a522_c6f7_dec3_5906873d14c8
  7328fa0a_98b6_fe77_42fd_0d1582b24604["button"]
  87e902db_d09e_d63e_d96a_582b4eb4c286 --> 7328fa0a_98b6_fe77_42fd_0d1582b24604
  8a527dea_9425_3da4_8ceb_ec3058568dc9["field"]
  87e902db_d09e_d63e_d96a_582b4eb4c286 --> 8a527dea_9425_3da4_8ceb_ec3058568dc9
  106d51d9_3961_e810_478c_8a9c54987d20["input"]
  87e902db_d09e_d63e_d96a_582b4eb4c286 --> 106d51d9_3961_e810_478c_8a9c54987d20
  d7a81682_7939_efa1_2cb0_ffb907cbcb71["native-select"]
  87e902db_d09e_d63e_d96a_582b4eb4c286 --> d7a81682_7939_efa1_2cb0_ffb907cbcb71
  d80c6389_7118_33c6_94f6_8ae48c4d9f8b["select"]
  87e902db_d09e_d63e_d96a_582b4eb4c286 --> d80c6389_7118_33c6_94f6_8ae48c4d9f8b
  style 87e902db_d09e_d63e_d96a_582b4eb4c286 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Example,
  ExampleWrapper,
} from "@/registry/bases/base/components/example"
import { Button } from "@/registry/bases/base/ui/button"
import {
  Field,
  FieldDescription,
  FieldGroup,
  FieldLabel,
} from "@/registry/bases/base/ui/field"
import { Input } from "@/registry/bases/base/ui/input"
import {
  NativeSelect,
  NativeSelectOption,
} from "@/registry/bases/base/ui/native-select"
import {
  Select,
  SelectContent,
  SelectGroup,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/registry/bases/base/ui/select"

export default function InputExample() {
  return (
    <ExampleWrapper>
      <InputBasic />
      <InputInvalid />
      <InputWithLabel />
      <InputWithDescription />
      <InputDisabled />
      <InputTypes />
      <InputWithSelect />
      <InputWithButton />
      <InputWithNativeSelect />
      <InputForm />
    </ExampleWrapper>
  )
}

function InputBasic() {
  return (
    <Example title="Basic">
      <Input type="email" placeholder="Email" />
    </Example>
  )
}

function InputInvalid() {
  return (
    <Example title="Invalid">
      <Input type="text" placeholder="Error" aria-invalid="true" />
    </Example>
  )
}

function InputWithLabel() {
  return (
// ... (209 more lines)

Subdomains

Dependencies

  • button
  • example
  • field
  • input
  • native-select
  • select

Frequently Asked Questions

What does input-example.tsx do?
input-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 input-example.tsx?
input-example.tsx defines 11 function(s): InputBasic, InputDisabled, InputExample, InputForm, InputInvalid, InputTypes, InputWithButton, InputWithDescription, InputWithLabel, InputWithNativeSelect, and 1 more.
What does input-example.tsx depend on?
input-example.tsx imports 6 module(s): button, example, field, input, native-select, select.
Where is input-example.tsx in the architecture?
input-example.tsx is located at apps/v4/registry/bases/base/examples/input-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