Home

The Toast component displays temporary notifications to inform users about actions, status changes, or events. It appears briefly and automatically disappears after a set duration.

Installation

npm
npx phpxui add Toast

Usage

use Lib\PHPXUI\Toast
<Toast open="{toast}" onOpenChange="{setToast}" />

<script>
    const [toast, setToast] = pp.state(false);
</script>