Files
upstream-mirror 1416db152c
All checks were successful
Release / Create Version PR or Publish Stable Release (push) Has been skipped
Release / Publish Prerelease to NPM (push) Has been skipped
Monitor Registries / Monitor registry health (push) Has been skipped
snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
2026-09-15 22:44:43 +05:00

31 lines
725 B
TypeScript

"use client"
import * as React from "react"
import { cn } from "cn"
import {
composeRenderProps,
Input as InputPrimitive,
} from "react-aria-components"
function Input({
className,
type,
...props
}: React.ComponentProps<typeof InputPrimitive>) {
return (
<InputPrimitive
type={type}
data-slot="input"
className={composeRenderProps(className, (className) =>
cn(
"cn-input w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
className
)
)}
{...props}
/>
)
}
export { Input }