Install

Install UI
Copy
npm i @anephenix/ui

Dependencies

  • Node.js (V 16 and greater)
  • React (V 18)

Usage

To use the library in your codebase, you will want to setup your pages/_app.js file like this:

pages/_app.js
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

import App from 'next/app';
import React from 'react';
import Head from 'next/head';
import { Page } from '@anephenix/ui';

// Style dependencies
import '@anephenix/ui/index.css';

class MyApp extends App {
  render() {
    const { Component, pageProps } = this.props;
    return (
      <>
        <Head />
        <Page>
          <Component {...pageProps} />
        </Page>
      </>
    );
  }
}
export default MyApp;