Code Monkey home page Code Monkey logo

Comments (7)

segunadebayo avatar segunadebayo commented on September 24, 2024 1

This was removed in favor of explicitly rendering/designing the toasts. The key driver for this decision is to make the toasts work in all frameworks without bias for React.

If you're okay with the TS error, you can still achieve the render function code like so:
https://codesandbox.io/p/sandbox/toast-custom-render-mcjvjf?file=%2Fsrc%2Ftoast.tsx%3A10%2C30

Another approach is to use functions for the title and description, these functions can return JSX if you want.

Thanks for understanding.

from zag.

anubra266 avatar anubra266 commented on September 24, 2024 1

@tyko0x This is an example of the function method
https://codesandbox.io/p/sandbox/quirky-fast-zqxph8?file=%2Fsrc%2Ftoast.tsx%3A6%2C20

from zag.

tyko0x avatar tyko0x commented on September 24, 2024

I don't have access to either of those sandboxes - could you provide a snippet of the function method?

from zag.

anubra266 avatar anubra266 commented on September 24, 2024

@tyko0x I've made it public

from zag.

tyko0x avatar tyko0x commented on September 24, 2024

I still can't access it. Code sandbox is not simple like it used to be 😞

from zag.

anubra266 avatar anubra266 commented on September 24, 2024

@tyko0x Try now. 😁

from zag.

tyko0x avatar tyko0x commented on September 24, 2024

Got it, and the example makes sense. Thanks.

from zag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.