Home / Function/ InputTypes() — ui Function Reference

InputTypes() — ui Function Reference

Architecture documentation for the InputTypes() function in input-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  02afaba1_004b_3c52_78d1_e6893d64274a["InputTypes()"]
  2a38594c_1959_8927_e41a_b562d6c912ae["input-example.tsx"]
  02afaba1_004b_3c52_78d1_e6893d64274a -->|defined in| 2a38594c_1959_8927_e41a_b562d6c912ae
  style 02afaba1_004b_3c52_78d1_e6893d64274a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/input-example.tsx lines 108–159

function InputTypes() {
  return (
    <Example title="Input Types">
      <div className="flex w-full flex-col gap-6">
        <Field>
          <FieldLabel htmlFor="input-demo-password">Password</FieldLabel>
          <Input
            id="input-demo-password"
            type="password"
            placeholder="Password"
          />
        </Field>
        <Field>
          <FieldLabel htmlFor="input-demo-tel">Phone</FieldLabel>
          <Input
            id="input-demo-tel"
            type="tel"
            placeholder="+1 (555) 123-4567"
          />
        </Field>
        <Field>
          <FieldLabel htmlFor="input-demo-url">URL</FieldLabel>
          <Input
            id="input-demo-url"
            type="url"
            placeholder="https://example.com"
          />
        </Field>
        <Field>
          <FieldLabel htmlFor="input-demo-search">Search</FieldLabel>
          <Input id="input-demo-search" type="search" placeholder="Search" />
        </Field>
        <Field>
          <FieldLabel htmlFor="input-demo-number">Number</FieldLabel>
          <Input id="input-demo-number" type="number" placeholder="123" />
        </Field>
        <Field>
          <FieldLabel htmlFor="input-demo-date">Date</FieldLabel>
          <Input id="input-demo-date" type="date" />
        </Field>
        <Field>
          <FieldLabel htmlFor="input-demo-time">Time</FieldLabel>
          <Input id="input-demo-time" type="time" />
        </Field>
        <Field>
          <FieldLabel htmlFor="input-demo-file">File</FieldLabel>
          <Input id="input-demo-file" type="file" />
        </Field>
      </div>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does InputTypes() do?
InputTypes() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/input-example.tsx.
Where is InputTypes() defined?
InputTypes() is defined in apps/v4/registry/bases/radix/examples/input-example.tsx at line 108.

Analyze Your Own Codebase

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

Try Supermodel Free