@viveksinghind/narrative-form-angular 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @viveksinghind/narrative-form-angular
|
|
2
|
+
|
|
3
|
+
Angular components for Narrative Form — a beautiful, typewriter-style signup flow.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @viveksinghind/narrative-form-angular @viveksinghind/narrative-form-core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- 💅 Beautiful, animated typewriter UI out of the box
|
|
14
|
+
- ⚡️ Built on top of a robust core state machine
|
|
15
|
+
- 🎨 Fully customizable and themeable (using standard CSS variables)
|
|
16
|
+
- 📱 Responsive and accessible
|
|
17
|
+
- 🅰️ Native Angular components and services
|
|
18
|
+
|
|
19
|
+
## Basic Usage
|
|
20
|
+
|
|
21
|
+
Import `NarrativeFormModule` in your module (or standalone component):
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { NarrativeFormComponent } from '@viveksinghind/narrative-form-angular';
|
|
25
|
+
|
|
26
|
+
@Component({
|
|
27
|
+
selector: 'app-root',
|
|
28
|
+
standalone: true,
|
|
29
|
+
imports: [NarrativeFormComponent],
|
|
30
|
+
template: `<narrative-form [config]="formConfig" (complete)="onComplete($event)"></narrative-form>`
|
|
31
|
+
})
|
|
32
|
+
export class AppComponent {
|
|
33
|
+
formConfig = {
|
|
34
|
+
// your form configuration
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
onComplete(data: any) {
|
|
38
|
+
console.log('Form completed:', data);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
MIT
|
package/package.json
CHANGED