You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/site/content/tutorial/12-actions/02-adding-parameters-to-act.../app-b/App.svelte

28 lines
511 B

<script>
import Converter from './Converter.svelte';
let value = 'Every word in this input gets converted into symbol on hover';
</script>
<style>
input {
width: 500px;
}
section {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 200px;
}
</style>
<input bind:value placeholder="Write something" />
<h1>Hover us</h1>
<section>
<Converter symbol="🍕" text={value} />
<Converter symbol="🙈" text={value} />
<Converter symbol="🥔" text={value} />
</section>