Skip to content

Latest commit

 

History

History
68 lines (53 loc) · 903 Bytes

README.md

File metadata and controls

68 lines (53 loc) · 903 Bytes

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>
  );
}

License

MIT