import { type JSX, For, Show, splitProps } from "solid-js"; interface InputProps extends JSX.InputHTMLAttributes { label?: string; error?: string; size?: "sm" | "md" | "lg"; } const sizeClasses = { sm: "input-sm", md: "", lg: "input-lg", }; export function Input(props: InputProps) { const [local, rest] = splitProps(props, ["label", "error", "size", "class", "id"]); const size = () => local.size ?? "md"; return (

{local.error}

); } interface TextareaProps extends JSX.TextareaHTMLAttributes { label?: string; error?: string; } export function Textarea(props: TextareaProps) { const [local, rest] = splitProps(props, ["label", "error", "class"]); return (