Download webui/src/components/ui/Select.tsx from xjackkx/rg: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/xjackkx/rg/resolve/main/webui/src/components/ui/Select.tsx
- Command line
-
hf download hf://spaces/xjackkx/rg/webui/src/components/ui/Select.tsx
-
curl -L -o Select.tsx https://huggingface.co/spaces/xjackkx/rg/resolve/main/webui/src/components/ui/Select.tsx
394 Bytes
| import type { SelectHTMLAttributes } from "react"; | |
| import { cn } from "../../lib/cn"; | |
| type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & { | |
| invalid?: boolean; | |
| }; | |
| export function Select({ className, invalid, children, ...props }: SelectProps) { | |
| return ( | |
| <select className={cn("select", invalid && "input-invalid", className)} {...props}> | |
| {children} | |
| </select> | |
| ); | |
| } | |