forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBc35a83aBurak Boduroğlu4 months ago440 commits

input.tsx18 lines, 830 bytesHistoryRawDownload
1import type { ComponentProps } from "solid-js";
2import { splitProps } from "solid-js";
3import { cn } from "@/lib/cn";
4
5export type InputProps = ComponentProps<"input">;
6
7export function Input(props: InputProps) {
8 const [local, rest] = splitProps(props, ["class"]);
9 return (
10 <input
11 class={cn(
12 "flex h-9 w-full rounded-md border border-input bg-background/90 px-3 py-1 text-base shadow-sm transition-all file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/80 hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
13 local.class,
14 )}
15 {...rest}
16 />
17 );
18}