Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

semantics of svelte syntax greater then in `action={trigger}> {$open ? 'Close' : 'Open'}`

$
0
0

I came across this syntax from example in (MeltUI -- a svelte based component library

<Button on:click={() => console.log('clicked')} {...$trigger} action={trigger}>  {$open ? 'Close' : 'Open'}</Button>

I want to understand what does the > in action={trigger}> {$open ? 'Close' : 'Open'} used for?


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>