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?
It's just the end of the opening
Buttontag:<Button ... >on:click={() => console.log('clicked')}clickevent handler{...$trigger}triggeraction={trigger}actionproperty being set to JS valuetrigger