forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput.tsx
More file actions
44 lines (40 loc) · 1.35 KB
/
Copy pathinput.tsx
File metadata and controls
44 lines (40 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"use client";
import React from "react";
export const Input = React.forwardRef<
HTMLInputElement,
React.InputHTMLAttributes<HTMLInputElement>
>(function Input({ className = "", ...props }, ref) {
return (
<input
ref={ref}
className={`flex h-10 w-full rounded-xl border border-[#DBDBE5] bg-white px-3 py-2 text-sm text-[#010507] placeholder:text-[#838389] focus:border-[#BEC2FF] focus:outline-none focus:ring-2 focus:ring-[#BEC2FF33] disabled:cursor-not-allowed disabled:opacity-50 ${className}`}
{...props}
/>
);
});
export const Select = React.forwardRef<
HTMLSelectElement,
React.SelectHTMLAttributes<HTMLSelectElement>
>(function Select({ className = "", children, ...props }, ref) {
return (
<select
ref={ref}
className={`flex h-10 w-full rounded-xl border border-[#DBDBE5] bg-white px-3 py-2 text-sm text-[#010507] focus:border-[#BEC2FF] focus:outline-none focus:ring-2 focus:ring-[#BEC2FF33] disabled:cursor-not-allowed disabled:opacity-50 ${className}`}
{...props}
>
{children}
</select>
);
});
export const Label = React.forwardRef<
HTMLLabelElement,
React.LabelHTMLAttributes<HTMLLabelElement>
>(function Label({ className = "", ...props }, ref) {
return (
<label
ref={ref}
className={`text-sm font-medium text-[#57575B] ${className}`}
{...props}
/>
);
});