Svelte Tutorial - 24 - Slot Props
Svelte Tutorial - 24 - Slot Props
前幾天介紹了slot是什麼,並且介紹了svelte slot 的基本內容跟named slots 命名插座後大家應該知道要怎麼在元件內插入自定義的子節點。 但是一般的svelte元件可以宣告
Props Full list of propsbindable variables for this component In the Slots has 3 named slots: slot=option
svelte get slot content With slot props, a component can pass data to the slot content Data can be passed to slot like it's a component Data can be bound to a variable with a let:
sveltekit slot With slot props, a component can pass data to the slot content Data can be passed to slot like it's a component Data can be bound to a variable with a let:
Regular
price
143.00 ₹ INR
Regular
price
143.00 ₹ INR
Sale
price
143.00 ₹ INR
Unit price
/
per