Skip to content

Input component's InputProps interface gives no-empty-interface ESLint error #2014

@maryamkhan14

Description

@maryamkhan14

Hi! I have a NextJS project using TypeScript, and I just installed the Input component. ESLint flags the following line of the generated input.tsx component:

export interface InputProps
  extends React.InputHTMLAttributes<HTMLInputElement> {}

With the following error: "An interface declaring no members is equivalent to its supertype."
As the error message states, the InputProps interface has no members, which is causing the problem.

**Steps to Reproduce: **

  • Install shadcn with all the default options suggested by the installer.
  • Run npx shadcn-ui@latest add input
  • See the ESLint error on the InputProps interface inside the generated Input component

I'm using npm as my package manager, if it helps. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions