Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/mrgnw/ananas. learn multiple languages at once ananas.xcc.es
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142<script lang="ts"> import type { HTMLInputAttributes } from "svelte/elements"; import type { InputEvents } from "./index.js"; import { cn } from "$lib/utils.js";
type $$Props = HTMLInputAttributes; type $$Events = InputEvents;
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>
<input class={cn( "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", className )} bind:value {readonly} on:blur on:change on:click on:focus on:focusin on:focusout on:keydown on:keypress on:keyup on:mouseover on:mouseenter on:mouseleave on:paste on:input on:wheel {...$$restProps}/>