mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-28 03:25:13 +02:00
23 lines
446 B
Svelte
23 lines
446 B
Svelte
<script lang="ts">
|
|
import { onMount } from 'svelte';
|
|
import Container from './Container.svelte';
|
|
import type { Readable } from 'svelte/store';
|
|
import classNames from 'classnames';
|
|
|
|
let hasFocusWithin: Readable<boolean>;
|
|
|
|
onMount(() => {
|
|
console.log('Hello world! onMount testElement');
|
|
});
|
|
</script>
|
|
|
|
<Container bind:hasFocusWithin>
|
|
<h1
|
|
class={classNames({
|
|
'bg-red-500': $hasFocusWithin
|
|
})}
|
|
>
|
|
Hello world!
|
|
</h1>
|
|
</Container>
|