0.1.12 • Published 12 months ago

@fabra/react-fabra-connect v0.1.12

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months 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

12 months ago

0.1.11

12 months ago

0.1.12

12 months ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago