hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBc35a83aBurak Boduroğlu4 months ago440 commits
| 1 | import type { ComponentProps } from "solid-js"; |
| 2 | import { splitProps } from "solid-js"; |
| 3 | import { cn } from "@/lib/cn"; |
| 4 | |
| 5 | export type InputProps = ComponentProps<"input">; |
| 6 | |
| 7 | export 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 | } |