Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
Publish MCP to npm / Build, test, and publish MCP (push) Waiting to run
Publish SDK to npm / Build, test, and publish SDK (push) Waiting to run
Sync action catalog to docs / sync (push) Waiting to run
Publish UI to npm / Build and publish UI (push) Waiting to run
Build and Release / preflight (push) Waiting to run
26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
import * as React from 'react';
|
|
import { cn } from '../lib/cn';
|
|
|
|
const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(
|
|
({ className, type, ...props }, ref) => (
|
|
<input
|
|
type={type}
|
|
ref={ref}
|
|
className={cn(
|
|
'flex h-9 w-full min-w-0 rounded-lg border border-border bg-card px-3 py-1 text-sm text-foreground shadow-xs transition-[color,box-shadow,border-color,background-color] outline-none',
|
|
'file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium',
|
|
'placeholder:text-muted-foreground',
|
|
'hover:border-border/80',
|
|
'focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/40',
|
|
'disabled:cursor-not-allowed disabled:opacity-50',
|
|
'aria-invalid:border-destructive aria-invalid:ring-destructive/20',
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
),
|
|
);
|
|
Input.displayName = 'Input';
|
|
|
|
export { Input };
|