Skip to main content

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​

PropTypeDefault
user{ name, handle, bio?, avatar?, location? }Required
stats{ label, value }[]None
posts{ id, title, image? }[]None: the empty state
ownboolean: shows Edit profile instead of Followfalse
onFollow, onEdit, onPostPress, onBackCallbacksNone
labelsPartial<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.