GHHG10's picture
download
raw
891 Bytes
import { type ComponentProps, splitProps } from "solid-js"
import "./textarea-v2.css"
export interface TextareaV2Props extends ComponentProps<"textarea"> {
/** Error styling for the field and value text. */
invalid?: boolean
}
export function TextareaV2(props: TextareaV2Props) {
const [local, textareaProps] = splitProps(props, ["class", "classList", "invalid", "disabled", "rows"])
return (
<div
data-component="textarea-v2"
data-disabled={local.disabled ? "" : undefined}
data-invalid={local.invalid ? "" : undefined}
classList={{
...local.classList,
[local.class ?? ""]: !!local.class,
}}
>
<textarea
{...textareaProps}
rows={local.rows ?? 3}
disabled={local.disabled}
aria-invalid={local.invalid ? true : undefined}
data-slot="textarea-v2-textarea"
/>
</div>
)
}

Xet Storage Details

Size:
891 Bytes
·
Xet hash:
91b15c1bb5631f8aba21f7146b68f082a2cf135e02209870fee589d6579be39a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.