Skip to content

Commit a5d84f4

Browse files
committed
rename package
1 parent 13cd7b8 commit a5d84f4

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,43 @@
11
<p align="center">
2-
<a href="https://github.com/wireui/alpine-hold-directive/blob/master/LICENSE">
3-
<img src="https://img.shields.io/github/license/wireui/alpine-hold-directive" alt="GitHub license" data-canonical-src="https://img.shields.io/github/license/wireui/alpine-hold-directive" style="max-width:100%;" />
2+
<a href="https://github.com/wireui/alpinejs-hold-directive/blob/master/LICENSE">
3+
<img src="https://img.shields.io/github/license/wireui/alpinejs-hold-directive" alt="GitHub license" data-canonical-src="https://img.shields.io/github/license/wireui/alpinejs-hold-directive" style="max-width:100%;" />
44
</a>
55
<a href="https://twitter.com/ph7jack">
6-
<img alt="Twitter" src="https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Fwireui%2Falpine-hold-directive"></a>
6+
<img alt="Twitter" src="https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Fwireui%2Falpinejs-hold-directive"></a>
77
</a>
88
</p>
99

10-
# Alpine Hold Directive
10+
# Alpine.js Hold Directive
1111

12-
[![Tests](https://github.com/wireui/alpine-hold-directive/actions/workflows/test.yml/badge.svg)](https://github.com/wireui/alpine-hold-directive/actions/workflows/test.yml)
12+
[![Tests](https://github.com/wireui/alpinejs-hold-directive/actions/workflows/test.yml/badge.svg)](https://github.com/wireui/alpinejs-hold-directive/actions/workflows/test.yml)
1313

1414
### 🔥 Hold Directive
15-
The alpine-hold-directive allows you to add a hold action to an element and call it when the button is holding.
16-
15+
The hold directive allows you to add a hold action to an element and call it when the button is holding.
1716

1817
### 📚 Get Started
1918
#### Prerequisites:
2019
* [Alpinejs 3.10+](https://alpinejs.dev)
2120

2221
#### Install
2322
```bash
24-
yarn add @wireui/alpine-hold-directive
23+
yarn add @wireui/alpinejs-hold-directive
2524

2625
or
2726

28-
npm i @wireui/alpine-hold-directive --save
27+
npm i @wireui/alpinejs-hold-directive --save
2928
```
3029

3130
#### Configure
3231
```diff
3332
// resources/js/app.js
3433
import Alpine from 'alpinejs'
3534

36-
+ import HoldDirective from '@wireui/alpine-hold-directive'
35+
+ import HoldDirective from '@wireui/alpinejs-hold-directive'
3736
+ HoldDirective.register(Alpine)
3837

3938
// or
4039

41-
+ import { directive } from '@wireui/alpine-hold-directive'
40+
+ import { directive } from '@wireui/alpinejs-hold-directive'
4241
+ Alpine.directive('hold', directive)
4342

4443
window.Alpine = Alpine

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@wireui/alpine-hold-directive",
2+
"name": "@wireui/alpinejs-hold-directive",
33
"private": false,
44
"version": "1.0.0",
55
"description": "Alpine.js x-hold directive",

0 commit comments

Comments
 (0)