Examples
Profile Pro
A person's page: picture, name and handle, a bio and location, their counts, Follow (or Edit profile on your own), and their posts in a grid beside an About tab. With no posts it shows an empty state instead of a blank grid.
import { ProfileScreen } from '@patine-ui/pro';
Loading…
<ProfileScreen user={PROFILE_USER} stats={PROFILE_STATS} posts={PROFILE_POSTS} onFollow={() => {}} />
Make it yours
| Prop | Type | Default |
|---|---|---|
user | { name, handle, bio?, avatar?, location? } | Required |
stats | { label, value }[] | None |
posts | { id, title, image? }[] | None: the empty state |
own | boolean: shows Edit profile instead of Follow | false |
onFollow, onEdit, onPostPress, onBack | Callbacks | None |
labels | Partial<ProfileLabels> | English |
Built from the free Avatar, Tabs, Button and EmptyState.
In real apps
Every complete app has its own version of this screen, wired to its auth, data and settings: see the templates.
Related
- Settings PRO
- Activity feed PRO
- All blocks