UNPKG

svelte-autosize-input

Version:

Auto-width, auto-grow input component for Svelte. Dynamically adjusts input field width to grow or shrink with content. Includes customizable placeholders and constraints on minimum and maximum sizes.

95 lines (94 loc) 2.51 kB
{ "name": "svelte-autosize-input", "version": "0.0.10", "license": "MIT", "description": "Auto-width, auto-grow input component for Svelte. Dynamically adjusts input field width to grow or shrink with content. Includes customizable placeholders and constraints on minimum and maximum sizes.", "keywords": [ "svelte", "svelte-component", "dynamic-width", "dynamic-sizing", "autogrow", "autoresize", "autosize", "input", "dynamic input", "responsive input", "auto-resize", "input field", "form component", "svelte component", "content-based resizing", "width adjustment", "dynamic width", "flexible input", "real-time resizing", "sveltekit", "form input", "placeholder", "min-width", "max-width", "text input", "email input", "number input", "tel input", "url input", "grow", "shrink", "adaptive input", "input size", "scalable input" ], "scripts": { "dev": "vite dev", "build": "vite build && npm run package", "preview": "vite preview", "package": "svelte-kit sync && svelte-package && publint", "prepublishOnly": "npm run package", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "lint": "prettier --check . && eslint .", "format": "prettier --write ." }, "exports": { ".": { "types": "./dist/index.d.ts", "svelte": "./dist/index.js" } }, "files": [ "dist", "!dist/**/*.test.*", "!dist/**/*.spec.*" ], "peerDependencies": { "svelte": "^4.0.0" }, "devDependencies": { "@sveltejs/adapter-auto": "^3.0.0", "@sveltejs/kit": "^2.0.0", "@sveltejs/package": "^2.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0", "@types/eslint": "^8.56.7", "autoprefixer": "^10.4.19", "eslint": "^9.0.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-svelte": "^2.36.0", "globals": "^15.0.0", "postcss": "^8.4.38", "prettier": "^3.1.1", "prettier-plugin-svelte": "^3.1.2", "prettier-plugin-tailwindcss": "^0.5.14", "publint": "^0.1.9", "svelte": "^4.2.7", "svelte-check": "^3.6.0", "tailwindcss": "^3.4.4", "tslib": "^2.4.1", "typescript": "^5.0.0", "typescript-eslint": "^8.0.0-alpha.20", "vite": "^5.0.11" }, "svelte": "./dist/index.js", "types": "./dist/index.d.ts", "type": "module" }