@0xflair/react-dashboard v0.14.0
Flair SDK: react-dashboard
Tailwind and React components and hooks that helps building a web3 dApp dashboard.
Getting Started
Installation
Install the package:
npm install @0xflair/react-dashboard
Install peer dependencies if not already done:
npm install tailwindcss @headlessui/react @heroicons/react @tailwindcss/aspect-ratio
Configure
tailwind.config.js
(Tailwind v3) to scan SDK for classes:module.exports = { purge: [ "./public/**/*.html", "./src/**/*.{js,jsx,ts,tsx,vue}", // This line tells Tailwind to look into SDK files "./node_modules/@0xflair/**/*.{js,jsx,ts,tsx,vue}", ], content: ["./src/**/*.{js,jsx,ts,tsx}"], plugins: [ // These plugsins are used in this package require("@tailwindcss/forms"), require("@tailwindcss/aspect-ratio"), ], };
Example
import { FormSection } from "@0xflair/react-dashboard";
function CreatePage() {
return (
<>
<FormSection
title={"Wallet Info"}
description={"Provide information about your wallet"}
>
...
</FormSection>
</>
);
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago