Skip to content
Myr

input.tsx

This file

Path

apps/web/src/components/ui/input.tsx

19 lines · 1000 bytes · TypeScript

Last changed by

Draw text, controls, prose and code from one set of tokensoscabrielbefore adoption60f862e

History of this file

Take it

Give the web its W9 dependencies, components, project nav, line and revision helpers, and a stub for every new pageoscabrielbefore adoption254268a

lines 1–10why, one step back
1import { Input as InputPrimitive } from "@base-ui/react/input";
2import { cn } from "cn";3import * as React from "react";45function Input({ className, type, ...props }: React.ComponentProps<"input">) {6 return (7 <InputPrimitive8 type={type}9 data-slot="input"10 className={cn(

Draw text, controls, prose and code from one set of tokensoscabrielbefore adoption60f862e

line 11why, one step back
11 "border-input file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-surface aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 file:text-ui sm:text-ui h-9 w-full min-w-0 rounded-none border bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:font-medium focus-visible:ring-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-1 sm:h-8",

Give the web its W9 dependencies, components, project nav, line and revision helpers, and a stub for every new pageoscabrielbefore adoption254268a

lines 12–19why, one step back
12 className
13 )}14 {...props}15 />16 );17}1819export { Input };