Skip to content

chore(ui): remove unused button and input exports#228

Open
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/remove-unused-btn-input-exports-20260630
Open

chore(ui): remove unused button and input exports#228
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/remove-unused-btn-input-exports-20260630

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

Removes unused exports from two shadcn/ui components: button.tsx and input.tsx.

Why

button.tsx

buttonVariants and ButtonProps are used internally by the Button component but are never imported by any other file in the project. Removing them from the export list keeps the public API surface minimal.

input.tsx

InputProps served as a pass-through interface (extends React.InputHTMLAttributes<HTMLInputElement> {}) that added no additional properties. It was never imported externally. Replaced with inline React.InputHTMLAttributes<HTMLInputElement> directly in the component's type signature.

This is consistent with the established cleanup pattern in the repository:

Changes

  • src/components/ui/button.tsx: Changed export { Button, buttonVariants }export { Button }
  • src/components/ui/input.tsx: Removed the InputProps interface and used inline React.InputHTMLAttributes<HTMLInputElement> instead

Test Plan

  • All 52 existing tests pass
  • Production build succeeds
  • No behavior change — internal usage is unchanged

Remove buttonVariants and ButtonProps from the button.tsx export
list, and remove the InputProps interface from input.tsx (using
inline React.InputHTMLAttributes instead).

These exports are never imported by any other file in the project.
The internal variables/interfaces remain in the file since they are
used by the component implementations.

Consistent with similar cleanup PRs:
- #213, #207, #203 (dialog)
- #201 (dropdown-menu)
- #200 (sheet)
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightning-decoder Ready Ready Preview, Comment Jun 30, 2026 12:06pm

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.

1 participant