import { type ComponentProps, Show, splitProps } from "solid-js" import { Icon } from "./icon" import "./text-input-v2.css" export interface TextInputV2Props extends Omit, "type"> { /** Show the trailing copy action. */ showCopyButton?: boolean /** Accessible label for the copy button. */ copyLabel?: string onCopyClick?: (event: MouseEvent) => void /** Apply tabular numerals to the field value. */ numeric?: boolean /** Error styling for the field and value text. */ invalid?: boolean /** `base` is 28px tall; `large` is 32px tall. */ appearance?: "base" | "large" type?: ComponentProps<"input">["type"] } export function TextInputV2(props: TextInputV2Props) { const [local, inputProps] = splitProps(props, [ "class", "classList", "showCopyButton", "copyLabel", "onCopyClick", "numeric", "invalid", "appearance", "disabled", ]) return (
) }