0.1.12 • Published 2 years ago

@fabra/react-fabra-connect v0.1.12

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Fabra Connect React Hook

Installation

npm i @fabra/react-fabra-connect

Usage

import { useFabraConnect } from '@fabra/react-fabra-connect';

function App() {
  const linkToken = <Fetch the link token from your own backend>;

  const theme = {
    colors: {
      primary: {
        base: #805AD5, // Default color for buttons, graphics, etc
        hover: #553C9A, // Hover color for buttons and links
        text: #FFFFFF, // The font color on top of the primary color
      }
    }
  }

  const { open } = useFabraConnect({
    theme, // Theme is optional, will default to Fabra colors.
  });

  return (
    <div className="App">
      <button onClick={() => open(linkToken)} />
    </div>
  );
}
0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago