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/test/runtime-puppeteer/samples/svelte-self-css-custom-prop.../Slider1.svelte

28 lines
348 B

<script>
export let id;
export let count = 0;
</script>
<div {id}>
<p>Slider1</p>
<span>Track</span>
</div>
{#if count === 0}
<svelte:self
id="nest-{id}"
count={1}
--rail-color="rgb(255, 255, 0)"
--track-color="rgb(255, 0, 255)"
/>
{/if}
<style>
p {
color: var(--rail-color);
}
span {
color: var(--track-color);
}
</style>