New blog post:Extracting Employee Data with the BambooHR API - Practical Examples.
Install the library
npm install @apideck/components
Wrap your app in a
ToastProvider
import { ToastProvider } from '@apideck/components' const App = ({ Component, pageProps }: AppProps) => { return ( <ToastProvider> <Component {...pageProps} /> </ToastProvider> ) } export default App
Import the
useToast
addToast
removeToast
import { useToast } from '@apideck/components' export default function MyComponent() { const { addToast } = useToast() return <button onClick={() => addToast({ title: 'Yo world' })}>Click</button> }
You can pass the type
success
info
warning
error
Coming soon