Toast

KiteUI notification toasts with success, error, info, cart, and favorite variants.

Preview

Usage

import { ToastProvider, useToast } from "@/components/profile"

// Wrap app in provider
function App() {
  return (
    <ToastProvider>
      <MyComponent />
    </ToastProvider>
  )
}

// Use the hook
function MyComponent() {
  const { addToast } = useToast()
  
  return (
    <button onClick={() => addToast({ 
      message: "Success!", 
      type: "success" 
    })}>
      Show Toast
    </button>
  )
}

Toast Types

success
error
info
cart
favorite

API

MethodParametersDescription
addToast{ message, type }Show a new toast