## Installing

Install the library

```sh
npm install @apideck/components
```

## Getting started

Wrap your app in a `ModalProvider`

```js
import { ModalProvider } from '@apideck/components'

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

export default App
```

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

```js
import { useModal } from '@apideck/components'

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

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

## Basic

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

## Props

Coming soon
