aboutsummaryrefslogtreecommitdiffstats
path: root/web/components/ui/input.tsx
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-07 16:57:47 +0000
committerMohamedBassem <me@mbassem.com>2024-02-07 16:57:47 +0000
commit293869e1743c925519d938ebeeff033c773a1ec6 (patch)
treecc61ae06d6ab36b9eea9d5313e7d82981efcaaf7 /web/components/ui/input.tsx
parentdaebbf0154a290fb690ed94fca23377e0f739f53 (diff)
downloadkarakeep-293869e1743c925519d938ebeeff033c773a1ec6.tar.zst
[ui] Styling the bookmarks page
Diffstat (limited to 'web/components/ui/input.tsx')
-rw-r--r--web/components/ui/input.tsx25
1 files changed, 25 insertions, 0 deletions
diff --git a/web/components/ui/input.tsx b/web/components/ui/input.tsx
new file mode 100644
index 00000000..677d05fd
--- /dev/null
+++ b/web/components/ui/input.tsx
@@ -0,0 +1,25 @@
+import * as React from "react"
+
+import { cn } from "@/lib/utils"
+
+export interface InputProps
+ extends React.InputHTMLAttributes<HTMLInputElement> {}
+
+const Input = React.forwardRef<HTMLInputElement, InputProps>(
+ ({ className, type, ...props }, ref) => {
+ return (
+ <input
+ type={type}
+ className={cn(
+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
+ className
+ )}
+ ref={ref}
+ {...props}
+ />
+ )
+ }
+)
+Input.displayName = "Input"
+
+export { Input }