Skip to main content
Glama
textarea.svelte1.09 kB
<script lang="ts"> import type { HTMLTextareaAttributes } from "svelte/elements"; import type { TextareaEvents } from "./index.js"; import { cn } from "$lib/utils.js"; type $$Props = HTMLTextareaAttributes; type $$Events = TextareaEvents; let className: $$Props["class"] = undefined; export let value: $$Props["value"] = undefined; export { className as class }; // Workaround for https://github.com/sveltejs/svelte/issues/9305 // Fixed in Svelte 5, but not backported to 4.x. export let readonly: $$Props["readonly"] = undefined; </script> <textarea class={cn( "border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className )} bind:value {readonly} on:blur on:change on:click on:focus on:keydown on:keypress on:keyup on:mouseover on:mouseenter on:mouseleave on:paste on:input {...$$restProps} ></textarea>

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jhawkins11/task-manager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server