Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
<script>
import Add from "carbon-icons-svelte/lib/Add.svelte";
import CalendarAdd from "carbon-icons-svelte/lib/CalendarAdd.svelte";
import ChevronDown from "carbon-icons-svelte/lib/ChevronDown.svelte";
import LogoSvelte from "carbon-icons-svelte/lib/LogoSvelte.svelte";
</script>

<Add />
<Add size={20} />
<Add size={24} />
<Add size={32} />

<br />

<Add fill="red" />

<ChevronDown tabindex="0" />
<CalendarAdd />
<LogoSvelte />
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */