All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.components.toast.create-toaster.js Maven / Gradle / Ivy

Go to download

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