chakra-ui / chakra-ui-vue

⚡️ Build scalable and accessible Vue.js applications with ease.
https://vue.chakra-ui.com
MIT License
1.86k stars 136 forks source link

Import and use toast component in a JavaScript file #470

Closed ejirocodes closed 3 years ago

ejirocodes commented 3 years ago

I've been trying to import the Toast component using import { CToast } from '@chakra-ui/nuxt'; and import CToast from "@chakra-ui/vue/src/CToast" so I can use it to display error messages in my JavaScript file but I keep getting 👇🏽

Screen Shot 2021-07-20 at 17 56 52
peoray commented 3 years ago

@ejirocodes Thanks for opening an issue :) Can you create a reproduction using Codesandbox?

peoray commented 3 years ago

Please check the docs. Will be closing this for now. Let us know if you're still having this issue