0.0.233 • Published 2 years ago

@xoraia/lib v0.0.233

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Installation

  • Install the xoraia package to your system
yarn add @xoraia/lib
  • Install Peer Dependencies
yarn add @popperjs/core lodash react-use recoil styled-components react-colorful @trendyol-js/react-carousel nanoid @dnd-kit/core @dnd-kit/modifiers @dnd-kit/sortable

Add Material Icons

  • For Create React App

Add the material icons link to your public/index.html file

<html>
  <head>
    ...
    <link
      href="https://fonts.googleapis.com/icon?family=Material+Icons"
      rel="stylesheet"
    />
    ...
  </head>
  ...
</html>
  • For Next.js

Add the material icons link to your pages/_document. js | jsx | ts | tsx file

import Document, {
  Html,
  Head,
  Main,
  NextScript,
  DocumentContext,
} from "next/document";

class MyDocument extends Document {
  static async getInitialProps(ctx: DocumentContext) {
    const initialProps = await Document.getInitialProps(ctx);
    return { ...initialProps };
  }

  render() {
    return (
      <Html lang="fr">
        <Head>
          ...
          <link
            href="https://fonts.googleapis.com/icon?family=Material+Icons"
            rel="stylesheet"
          />
          ...
        </Head>
        <body>
          <Main />
          <NextScript />
        </body>
      </Html>
    );
  }
}

export default MyDocument;

Usage

read documentation

0.0.233

2 years ago

0.0.232

2 years ago

0.0.231

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.2

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.1

2 years ago