Components in this dir will be auto-registered, named & titled based on its file name.
Place a .ts or .js file with the following template, it will be installed automatically.
import { AlpineComponent } from 'alpine-typescript-extras'
export default class extends AlpineComponent {
// your component's logic here
}For example, if the component's file name is name.(ts|js):
<div x-data="Alpine.component('name')()">
...
</div>x-title attribute is automatically to components with the name of the class, so you can access it with the magic helper like this: $component('name').
Alpine Typescript. @ryangjchandler's Alpine code organization experiment.