Skip to content

Add InputGroup component with alignment variants and sub-components#162

Draft
AzadZedan with Copilot wants to merge 1 commit into
mainfrom
copilot/add-input-group-component
Draft

Add InputGroup component with alignment variants and sub-components#162
AzadZedan with Copilot wants to merge 1 commit into
mainfrom
copilot/add-input-group-component

Conversation

Copilot AI commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

The codebase was missing a composable InputGroup UI component for building styled input layouts with addons, buttons, and text decorators.

Component: client/src/components/ui/input-group.tsx

Six exported sub-components following shadcn/ui patterns:

  • InputGroup — Flex container managing shared border, focus ring, and error ring via CSS has-[] selectors. Supports inline and block alignment layouts automatically.
  • InputGroupAddoncva-powered wrapper with 4 alignment variants (inline-start, inline-end, block-start, block-end). Auto-focuses nested <input> on click.
  • InputGroupButton — Shadow-free Button with compact sizes (xs, sm, icon-xs, icon-sm) for in-group actions.
  • InputGroupText — Semantic <span> for static labels or icons.
  • InputGroupInputInput wrapper with data-slot="input-group-control" that removes duplicate borders/shadows/focus rings (delegated to parent InputGroup).
  • InputGroupTextarea — Same as InputGroupInput with resize disabled and vertical padding.
<InputGroup>
  <InputGroupAddon align="inline-start">
    <SearchIcon />
  </InputGroupAddon>
  <InputGroupInput placeholder="Search..." />
  <InputGroupAddon align="inline-end">
    <InputGroupButton><XIcon /></InputGroupButton>
  </InputGroupAddon>
</InputGroup>

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add input group component with styling Add InputGroup component with alignment variants and sub-components Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants