diff --git a/app/components/Input.tsx b/app/components/Input.tsx index a8ce2232f9..2d5ebbfe6d 100644 --- a/app/components/Input.tsx +++ b/app/components/Input.tsx @@ -2,17 +2,23 @@ import { twMerge } from "tailwind-merge"; import { IconDefinition } from "@fortawesome/pro-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Label } from "./Typography"; +import { kebabCase } from "~/utilities"; interface InputProps extends React.InputHTMLAttributes { label?: string; - className?: string; icon?: IconDefinition } -export function Input({label, icon, className, ...rest }: InputProps) { +export function Input({ + label, icon, className, id, ...rest +}: InputProps) { return (
- {label && } + {label && + + }
{icon && ( @@ -22,6 +28,7 @@ export function Input({label, icon, className, ...rest }: InputProps) { /> )} & { label?: string; @@ -22,8 +24,14 @@ export const Textarea = ({ }) => { return (
- {label && } + {label && + + } +