Home / File/ input-group-with-buttons.tsx — ui Source File

input-group-with-buttons.tsx — ui Source File

Architecture documentation for input-group-with-buttons.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.

File tsx DocumentationAtlas ContentSourcing 5 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  cd339b0b_6ef1_aadb_d207_c89dc6de804c["input-group-with-buttons.tsx"]
  4b1d2128_46d9_46f0_b915_b6e1925b7876["button"]
  cd339b0b_6ef1_aadb_d207_c89dc6de804c --> 4b1d2128_46d9_46f0_b915_b6e1925b7876
  b5f68436_cf6b_fba3_fb29_abf27fd13442["field"]
  cd339b0b_6ef1_aadb_d207_c89dc6de804c --> b5f68436_cf6b_fba3_fb29_abf27fd13442
  9af00736_7b63_3c3c_87d0_68c5200c5d80["input"]
  cd339b0b_6ef1_aadb_d207_c89dc6de804c --> 9af00736_7b63_3c3c_87d0_68c5200c5d80
  d4ae1ebd_39ec_2b17_5c84_fbca1aec26c7["input-group"]
  cd339b0b_6ef1_aadb_d207_c89dc6de804c --> d4ae1ebd_39ec_2b17_5c84_fbca1aec26c7
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  cd339b0b_6ef1_aadb_d207_c89dc6de804c --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style cd339b0b_6ef1_aadb_d207_c89dc6de804c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/examples/radix/ui/button"
import { Field, FieldGroup, FieldLabel } from "@/examples/radix/ui/field"
import { Input } from "@/examples/radix/ui/input"
import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
} from "@/examples/radix/ui/input-group"
import { CopyIcon, TrashIcon } from "lucide-react"

export function InputGroupWithButtons() {
  return (
    <FieldGroup>
      <Field>
        <FieldLabel htmlFor="input-button-13">Button</FieldLabel>
        <InputGroup>
          <InputGroupInput id="input-button-13" />
          <InputGroupAddon>
            <InputGroupButton>Default</InputGroupButton>
          </InputGroupAddon>
        </InputGroup>
        <InputGroup>
          <InputGroupInput id="input-button-14" />
          <InputGroupAddon>
            <InputGroupButton variant="outline">Outline</InputGroupButton>
          </InputGroupAddon>
        </InputGroup>
        <InputGroup>
          <InputGroupInput id="input-button-15" />
          <InputGroupAddon>
            <InputGroupButton variant="secondary">Secondary</InputGroupButton>
          </InputGroupAddon>
        </InputGroup>
        <InputGroup>
          <InputGroupInput id="input-button-16" />
          <InputGroupAddon align="inline-end">
            <InputGroupButton variant="secondary">Button</InputGroupButton>
          </InputGroupAddon>
        </InputGroup>
        <InputGroup>
          <InputGroupInput id="input-button-17" />
          <InputGroupAddon align="inline-end">
            <InputGroupButton size="icon-xs">
              <CopyIcon />
            </InputGroupButton>
          </InputGroupAddon>
        </InputGroup>
        <InputGroup>
          <InputGroupInput id="input-button-18" />
          <InputGroupAddon align="inline-end">
            <InputGroupButton variant="secondary" size="icon-xs">
              <TrashIcon />
            </InputGroupButton>
          </InputGroupAddon>
        </InputGroup>
      </Field>
    </FieldGroup>
  )
}

Subdomains

Dependencies

  • button
  • field
  • input
  • input-group
  • lucide-react

Frequently Asked Questions

What does input-group-with-buttons.tsx do?
input-group-with-buttons.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 input-group-with-buttons.tsx?
input-group-with-buttons.tsx defines 1 function(s): InputGroupWithButtons.
What does input-group-with-buttons.tsx depend on?
input-group-with-buttons.tsx imports 5 module(s): button, field, input, input-group, lucide-react.
Where is input-group-with-buttons.tsx in the architecture?
input-group-with-buttons.tsx is located at apps/v4/examples/radix/input-group-with-buttons.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, 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