You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/1-essentials/02-views.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -243,7 +243,7 @@ To create a view component, create a `.view.php` file that starts with `x-`. The
243
243
244
244
### Using view components
245
245
246
-
All views may include a views components. In order to do so, you may simply use a component's name as a tag, including the `x-` prefix:
246
+
All views may include a view component. In order to do so, you may simply use a component's name as a tag, including the `x-` prefix:
247
247
248
248
```html app/home.view.php
249
249
<x-base:title="$this->post->title">
@@ -253,7 +253,7 @@ All views may include a views components. In order to do so, you may simply use
253
253
</x-base>
254
254
```
255
255
256
-
The example above demonstrates how to pass data to a component using an [expression attribute](#expression-attributes), as well as how pass elements as children if that component where the `<x-slot />` tag is used.
256
+
The example above demonstrates how to pass data to a component using an [expression attribute](#expression-attributes), as well as how to pass elements as children if that component where the `<x-slot />` tag is used.
257
257
258
258
### Attributes in components
259
259
@@ -301,7 +301,7 @@ Similarly, the `id` attribute will always replace an existing `id` attribute on
301
301
302
302
An `$attributes` variable is accessible within view components. This variable is an array that contains all attributes passed to the component, except expression attributes.
@@ -348,7 +348,7 @@ A view component's slot can define a default value, which will be used when a vi
348
348
349
349
### Named slots
350
350
351
-
When a single slot is not enough, names can be attached to them. When using a component with named slot, you may use the `<x-slot>` tag with a `name` attribute to render content in a named outlet:
351
+
When a single slot is not enough, names can be attached to them. When using a component with a named slot, you may use the `<x-slot>` tag with a `name` attribute to render content in a named outlet:
352
352
353
353
```html x-base.view.php
354
354
<htmllang="en">
@@ -544,7 +544,7 @@ Iconify has a large collection of icon sets, which you may browse using the [Ic
544
544
545
545
Tempest has built-in support for [Vite](https://vite.dev/), the most popular front-end development server and build tool. You may read more about [asset bundling](../2-features/05-asset-bundling.md) in the dedicated documentation.
546
546
547
-
This component simply inject registered entrypoints where it is called.
547
+
This component simply injects registered entrypoints where it is called.
0 commit comments