Home / Function/ InputGroupTextExample() — ui Function Reference

InputGroupTextExample() — ui Function Reference

Architecture documentation for the InputGroupTextExample() function in input-group-text.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  6ed42a34_7186_273f_2857_e96d36f38176["InputGroupTextExample()"]
  183ce882_38dc_6253_653c_d12fdf845fd7["input-group-text.tsx"]
  6ed42a34_7186_273f_2857_e96d36f38176 -->|defined in| 183ce882_38dc_6253_653c_d12fdf845fd7
  style 6ed42a34_7186_273f_2857_e96d36f38176 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/examples/input-group-text.tsx lines 9–46

export default function InputGroupTextExample() {
  return (
    <div className="grid w-full max-w-sm gap-6">
      <InputGroup>
        <InputGroupAddon>
          <InputGroupText>$</InputGroupText>
        </InputGroupAddon>
        <InputGroupInput placeholder="0.00" />
        <InputGroupAddon align="inline-end">
          <InputGroupText>USD</InputGroupText>
        </InputGroupAddon>
      </InputGroup>
      <InputGroup>
        <InputGroupAddon>
          <InputGroupText>https://</InputGroupText>
        </InputGroupAddon>
        <InputGroupInput placeholder="example.com" className="!pl-0.5" />
        <InputGroupAddon align="inline-end">
          <InputGroupText>.com</InputGroupText>
        </InputGroupAddon>
      </InputGroup>
      <InputGroup>
        <InputGroupInput placeholder="Enter your username" />
        <InputGroupAddon align="inline-end">
          <InputGroupText>@company.com</InputGroupText>
        </InputGroupAddon>
      </InputGroup>
      <InputGroup>
        <InputGroupTextarea placeholder="Enter your message" />
        <InputGroupAddon align="block-end">
          <InputGroupText className="text-muted-foreground text-xs">
            120 characters left
          </InputGroupText>
        </InputGroupAddon>
      </InputGroup>
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does InputGroupTextExample() do?
InputGroupTextExample() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/input-group-text.tsx.
Where is InputGroupTextExample() defined?
InputGroupTextExample() is defined in apps/v4/registry/new-york-v4/examples/input-group-text.tsx at line 9.

Analyze Your Own Codebase

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

Try Supermodel Free