mirror of
https://github.com/archtechx/alpine-typescript.git
synced 2025-12-11 22:34:03 +00:00
typo
This commit is contained in:
parent
9444b8bb63
commit
acc2715d56
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ import DarkModeToggle from './darkModeToggle';
|
|||
Alpine.component('darkModeToggle', DarkModeToggle);
|
||||
```
|
||||
|
||||
**Use it a template**
|
||||
**Use it in a template**
|
||||
```html
|
||||
<div x-data="Alpine.component('darkModeToggle')()" x-init="init()">
|
||||
<button type="button" @click="switchTheme()">Switch theme</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue