0.3.0 • Published 2 years ago

ankr-ui v0.3.0

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

ankr-ui

A React UI library of common components we use in the projects we build for our tutorials at Ankr.

Click here to check out the library's Storybook and all the components

Usage guide

  1. Install the package from npm
# using npm
npm install ankr-ui

# using yarn
yarn add ankr-ui
  1. Import the CSS at the root of your project (_app.tsx in Next.js, main.tsx in Vite, index.tsx in CRA)
import 'ankr-ui/dist/tailwind.css';
import '../styles/globals.css';
import type { AppProps } from 'next/app';

function MyApp({ Component, pageProps }: AppProps) {
  return <Component {...pageProps} />
}

export default MyApp;
  1. Import the component you want to use
import { Button } from 'ankr-ui';

const Page = () => {
  return <Button>gm</Button>;
};

export default Page;

Local development

  1. Clone the repo
git clone https://github.com/dhaiwat10/ankr-ui.git
  1. cd into the directory and install the dependencies
cd ankr-ui && yarn
  1. Run the development server
yarn dev
  1. Run the Storybook
yarn storybook
0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago