Skip to content

Commit 5ca5f61

Browse files
committed
readme
1 parent ac6c2cf commit 5ca5f61

1 file changed

Lines changed: 112 additions & 0 deletions

File tree

README.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# @appgram/react
2+
3+
React library for integrating Appgram portal features with pre-built UI components and headless hooks.
4+
5+
## Installation
6+
7+
```bash
8+
npm install @appgram/react
9+
```
10+
11+
```bash
12+
yarn add @appgram/react
13+
```
14+
15+
```bash
16+
pnpm add @appgram/react
17+
```
18+
19+
## Quick Start
20+
21+
Wrap your app with `AppgramProvider`:
22+
23+
```tsx
24+
import { AppgramProvider } from '@appgram/react'
25+
26+
function App() {
27+
return (
28+
<AppgramProvider apiKey="your-api-key">
29+
<YourApp />
30+
</AppgramProvider>
31+
)
32+
}
33+
```
34+
35+
Use components or hooks:
36+
37+
```tsx
38+
import { WishList, useWishes } from '@appgram/react'
39+
40+
// Pre-built component
41+
function Feedback() {
42+
return <WishList />
43+
}
44+
45+
// Or headless hook for custom UI
46+
function CustomFeedback() {
47+
const { wishes, isLoading } = useWishes()
48+
49+
if (isLoading) return <div>Loading...</div>
50+
51+
return (
52+
<ul>
53+
{wishes.map(wish => (
54+
<li key={wish.id}>{wish.title}</li>
55+
))}
56+
</ul>
57+
)
58+
}
59+
```
60+
61+
## Features
62+
63+
- **Feedback & Wishboards** - Collect feature requests with voting
64+
- **Roadmap** - Display product roadmap with status columns
65+
- **Changelog** - Show release notes and updates
66+
- **Help Center** - Knowledge base with collections and articles
67+
- **Support** - Ticket submission forms
68+
- **Status Page** - Service status and incident tracking
69+
- **Surveys** - Collect user feedback with forms
70+
- **Blog** - Display blog posts and categories
71+
72+
## Hooks
73+
74+
| Hook | Description |
75+
|------|-------------|
76+
| `useWishes` | Fetch and manage feature requests |
77+
| `useVote` | Handle voting on wishes |
78+
| `useRoadmap` | Fetch roadmap data |
79+
| `useReleases` | Fetch changelog releases |
80+
| `useHelpCenter` | Fetch help center collections |
81+
| `useHelpArticle` | Fetch individual articles |
82+
| `useSupport` | Submit support requests |
83+
| `useStatus` | Fetch status page data |
84+
| `useSurvey` | Fetch and submit surveys |
85+
| `useContactForm` | Fetch and submit contact forms |
86+
| `useBlogPosts` | Fetch blog posts |
87+
88+
## Components
89+
90+
| Component | Description |
91+
|-----------|-------------|
92+
| `WishList` | Feature request list with voting |
93+
| `SubmitWishForm` | Form to submit new wishes |
94+
| `RoadmapBoard` | Kanban-style roadmap display |
95+
| `ReleaseList` | Changelog with release cards |
96+
| `HelpCenter` | Full help center with search |
97+
| `SupportForm` | Support ticket submission |
98+
| `StatusBoard` | Service status dashboard |
99+
| `SurveyRenderer` | Dynamic survey forms |
100+
| `Blog` | Blog listing with categories |
101+
102+
## Documentation
103+
104+
Full documentation available at [appgram.dev/docs](https://appgram.dev/docs)
105+
106+
## Requirements
107+
108+
- React 18.0.0 or higher
109+
110+
## License
111+
112+
MIT

0 commit comments

Comments
 (0)