Files
snippet-pastebin/src/components/ui/input.tsx
johndoe6345789 b4379fde9b refactor: migrate UI components to M3 SCSS design system
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4.5) <aider@aider.chat>
2026-01-20 16:36:37 +00:00

15 lines
399 B
TypeScript

import { ComponentProps, forwardRef } from "react"
import { cn } from "@/lib/utils"
export const Input = forwardRef<HTMLInputElement, ComponentProps<"input">>(
({ className, type = "text", ...props }, ref) => (
<input
ref={ref}
type={type}
className={cn("mat-mdc-input-element", "mdc-text-field__input", className)}
{...props}
/>
)
)
Input.displayName = "Input"