
package.dist.components.toast.create-toaster.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react Show documentation
Show all versions of react Show documentation
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
The newest version!
'use client';
import { normalizeProps } from '@zag-js/react';
import * as toast from '@zag-js/toast';
const createToaster = (props) => {
const machine = toast.group.machine({ id: "1", ...props });
const api = toast.group.connect(machine, machine.send, normalizeProps);
return { ...api, machine };
};
export { createToaster };
© 2015 - 2025 Weber Informatics LLC | Privacy Policy