hextastudio/ui needs your support to stay running 🫶 Help us
Notification
The Notification component displays a message to the user.
Preview
Installation
tsx
import { useState } from "react";
export const Home = () => {
const [showNotification, setShowNotification] = useState(false);
const toggleNotification = () => {
setShowNotification(!showNotification);
setTimeout(() => {
setShowNotification(false);
}, 5000);
Props Information
Prop Name
Prop Type
Default Value
Description
Prop Name | Prop Type | Default Value | Description |
---|