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
Tab.svelte
TabList.svelte
TabPanel.svelte
Tabs.svelte
one.svelte
two.svelte
id.js
index.js
<script>
import One from './one.svelte'
import Two from './two.svelte'
import { quintOut } from 'svelte/easing';
import { crossfade } from 'svelte/transition';
import { Tabs, Tab, TabList, TabPanel } from 'svelte-tabs';
let name = 'world';
const [send, receive] = crossfade({
duration: d => Math.sqrt(d * 200),

fallback(node, params) {
const style = getComputedStyle(node);
const transform = style.transform === 'none' ? '' : style.transform;

return {
duration: 600,
easing: quintOut,
css: t => `
transform: ${transform} scale(${t});
opacity: ${t}
`
};
}
});

</script>

<style>
:global(.svelte-tabs) {
display: grid;
}

:global(.svelte-tabs div.svelte-tabs__tab-panel) {
grid-row: 2;
grid-column: 1;
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */