We launched the Accounting Sample!Manage invoices, payments, expenses, and more across multiple connectors.

Search docs


Install the library

npm install @apideck/components

Getting started

Wrap your app in a ModalProvider

import { ModalProvider } from '@apideck/components'

const App = ({ Component, pageProps }: AppProps) => {
  return (
      <Component {...pageProps} />

export default App

Import the useModal hook and use it to open and close modals with the addModal and removeModal functions.

import { useModal } from '@apideck/components'

export default function MyComponent() {
  const { addModal } = useModal()

  return <button onClick={() => addModal('Yo world')}>Open</button>


You can pass the modal content as the first argument and any options as the second argument of the addModal function.



Coming soon