UNPKG

react-toggly

Version:

A highly customizable and themeable toggle switch component for React, built with TypeScript and styled-components. Supports multiple themes like iOS, Bootstrap, and Tailwind CSS, and allows for custom icons, accessibility features, and controlled/uncontr

89 lines (88 loc) 2.67 kB
{ "name": "react-toggly", "version": "1.3.1", "description": "A highly customizable and themeable toggle switch component for React, built with TypeScript and styled-components. Supports multiple themes like iOS, Bootstrap, and Tailwind CSS, and allows for custom icons, accessibility features, and controlled/uncontrolled behavior.", "repository": { "type": "git", "url": "https://github.com/farisnceit/react-toggly.git" }, "homepage": "https://farisnceit.github.io/react-toggly/", "license": "MIT", "keywords": [ "react", "toggle", "switch", "toggle-switch", "react-component", "typescript", "ios", "bootstrap", "tailwind", "theme", "customizable", "accessible", "a11y", "controlled-component", "uncontrolled-component" ], "main": "dist/index.cjs", "module": "dist/index.js", "types": "dist/types/index.d.ts", "type": "module", "exports": { "require": "./dist/index.cjs", "umd": "./dist/index.umd.js", "types": "./dist/types/index.d.ts", "import": "./dist/index.js" }, "files": [ "dist", "dist/types" ], "scripts": { "dev": "vite", "build": "rollup -c", "watch": "rollup -c -w", "demo:build": "vite build", "demo:preview": "vite build && vite preview", "lint": "eslint .", "lint:fix": "npx eslint . --fix", "prepublishOnly": "npm run lint && npm run build", "git:log": " git log -n 10 --pretty=format:'- %s (%cr) by %an'", "deploy": "vite build && gh-pages -d docs" }, "peerDependencies": { "react": ">=17.0.0", "react-dom": ">=17.0.0" }, "sideEffects": false, "devDependencies": { "@changesets/cli": "^2.27.12", "@eslint/js": "^9.21.0", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-commonjs": "^28.0.2", "@rollup/plugin-node-resolve": "^16.0.0", "@rollup/plugin-typescript": "^12.1.2", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "@vitejs/plugin-react-swc": "^3.8.0", "eslint": "^9.21.0", "eslint-plugin-react": "^7.37.4", "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.19", "gh-pages": "^6.3.0", "globals": "^15.15.0", "rollup": "^4.34.6", "rollup-plugin-copy": "^3.5.0", "rollup-plugin-dts": "^6.1.1", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-postcss": "^4.0.2", "typescript": "~5.7.2", "typescript-eslint": "^8.25.0", "vite": "^6.2.1" }, "dependencies": { "@rollup/plugin-terser": "^0.4.4", "tslib": "^2.8.1" } }