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
WorldClock.svelte
<script>
import WorldClock from './WorldClock.svelte';
</script>

<p>
The time in London is <WorldClock timezone="GMT"/>
</p>

<p>
The time in New York is <WorldClock timezone="EDT"/>
</p>

<p>
The time in Hong Kong is <WorldClock timezone="HKT"/>
</p>
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */