[Question]: #1725
Unanswered
Matthew-Modvans
asked this question in
Q&A
[Question]:
#1725
Replies: 1 comment
-
Hi @Matthew-Modvans, could you share your .svelte file here? That way I can have more context of the issue. Typically you would use the button and CSS code in a .svelte file like this: <script>
import "carbon-components-svelte/css/g80.css";
import { Button } from 'carbon-components-svelte';
</script>
<Button>Click here</Button> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question for Carbon
Hello, I'm trying to implement carbon components into a svelte web app I'm working on. I installed the library using npm, and in the script tag, I have these two lines
But whenever I try to create the button element, I just get the error 'Button' is not defined. Consider adding a <script> block with 'export let Button' to declare a propsvelte(missing-declaration). Any help would be great, thanks!
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions