fix: update code snippet formatting to use backticks for consistency
This commit is contained in:
@@ -180,7 +180,7 @@ That's pretty concise and a bit of a head-scratcher to read, but basically what
|
|||||||
1. you can reference a slot from a child element of that component and,
|
1. you can reference a slot from a child element of that component and,
|
||||||
1. provide content to the parent component's slot from the child by naming the slot in the child with a `slot="<slot-name>"` property assignment, where the _slot-name_ is the parent's slot.
|
1. provide content to the parent component's slot from the child by naming the slot in the child with a `slot="<slot-name>"` property assignment, where the _slot-name_ is the parent's slot.
|
||||||
|
|
||||||
So, in the example above, the _CallToAction_ component defines the _subtitle_ slot, and the following _<Fragment slot="subtitle">_ populates the slot with the following content:
|
So, in the example above, the _CallToAction_ component defines the _subtitle_ slot, and the following `<Fragment slot="subtitle">` populates the slot with the following content:
|
||||||
|
|
||||||
```astro
|
```astro
|
||||||
<Fragment slot="subtitle">
|
<Fragment slot="subtitle">
|
||||||
|
|||||||
Reference in New Issue
Block a user