Skip to content

Commit 0b86c3d

Browse files
authored
docs: fix typos in view components documentation (#1571)
1 parent 4948582 commit 0b86c3d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/1-essentials/02-views.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ To create a view component, create a `.view.php` file that starts with `x-`. The
243243

244244
### Using view components
245245

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:
247247

248248
```html app/home.view.php
249249
<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
253253
</x-base>
254254
```
255255

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.
257257

258258
### Attributes in components
259259

@@ -301,7 +301,7 @@ Similarly, the `id` attribute will always replace an existing `id` attribute on
301301

302302
An `$attributes` variable is accessible within view components. This variable is an array that contains all attributes passed to the component, except expression attributes.
303303

304-
Note that attributes names use `{txt}kebab-case`.
304+
Note that attribute names use `{txt}kebab-case`.
305305

306306
```html x-badge.view.php
307307
<span class="px-2 py-1 rounded-md text-sm bg-gray-100 text-gray-900">
@@ -348,7 +348,7 @@ A view component's slot can define a default value, which will be used when a vi
348348

349349
### Named slots
350350

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:
352352

353353
```html x-base.view.php
354354
<html lang="en">
@@ -544,7 +544,7 @@ Iconify has a large collection of icon sets, which you may browse using the [Ic
544544

545545
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.
546546

547-
This component simply inject registered entrypoints where it is called.
547+
This component simply injects registered entrypoints where it is called.
548548

549549
```html x-base.view.php
550550
<html lang="en">

0 commit comments

Comments
 (0)