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/custom-elements/samples/camel-case-attribute/main.svelte

22 lines
399 B

<svelte:options
customElement={{
tag: "custom-element",
props: {
camelCase: { attribute: "camel-case" },
camelCase2: { reflect: true },
anArray: { attribute: "an-array", type: "Array", reflect: true },
},
}}
/>
<script>
export let camelCase;
export let camelCase2;
export let anArray;
</script>
<h1>{camelCase2} {camelCase}!</h1>
{#each anArray as item}
<p>{item}</p>
{/each}