Package Exports
- negishut
- negishut/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (negishut) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Project Title
An accessibility extension to websites.
Installation
Install my-project with npm
npm install negishut
Usage/Examples
import negishut from "negishut";
function App() {
negishut();
return <Component />;
}
NextJs
"use client";
import negishut from "negishut";
import { useEffect } from "react";
function Accessibility() {
useEffect(() => {
negishut();
}, []);
return <></>;
}
Changing Language
import { setLang } from "negishut";
function ChangeLang() {
return (
<div>
<button
onClick={() => {
setLang("he");
}}
>
hebrew
</button>
<button
onClick={() => {
setLang("en");
}}
>
english
</button>
</div>
);
}