@selenite/commons
Version:
This typescript package provides a set of frequently used utilities, types and svelte actions for building projects with Typescript and Svelte.
10 lines (9 loc) • 412 B
TypeScript
import type { Action } from 'svelte/action';
/**
* Action to make a textarea autosize.
*
* A parameter can be passed to the action to trigger an update when it changes.
* @param {HTMLTextAreaElement} textarea - The textarea element to make autosize.
*/
export declare const autosize: Action<HTMLTextAreaElement, unknown | undefined>;
export declare const checkbox: Action<HTMLElement, boolean | undefined>;