Periodic Table of Elements
npm install @celadora/periodic-table
import PeriodicTable, { OnClick } from '@celadora/periodic-table';
function App() {
const handleClick: OnClick = (e, element) => {
console.log(element);
}
return (
<PeriodicTable onClick={handleClick} squareSize={55} margin={2} />
)
}
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for distribution
Publishes the app