Feedback and status
Toast
Available forNativeWeb
transient · ToastProvider is in the root layout
Usage
Transient, bottom-anchored, tap to dismiss. Persistent messages use Alert.
API
const toast = useToast(); toast.success("Saved") · .error · .warning · .infoGet it
Already in every copy of the native kit:
import { useToast, ToastProvider } from '@/components/kit/toast';Details
- Exports
useToast,ToastProvider- Packages
- lucide-react-native@^1.21.0, react-native-safe-area-context@~5.7.0
- Installs with
- @kit-native/icon, @kit-native/lib-haptics, @kit-native/lib-reduced-motion, @kit-native/lib-theme, @kit-native/lib-utils, @kit-native/text
- Also searched as
- snackbar, notification, message, copied
- Registry JSON
- /r/native/toast.json
Usage
For “done” and “undo”, not for errors that need action (use Alert next to the cause).
API
import { toast } from 'sonner'; toast.success('Saved')Get it
Already in every copy of the web kit:
import { Toaster } from '@/components/ui/sonner';Details
- Exports
Toaster- Also searched as
- sonner, snackbar, notification
- Upstream
- Unchanged from shadcn/ui; installs from their registry.
Agents: the whole registry is at /llms.txt.