@hautechai/webui.user
v2.1.12
Published
User profile display component showing avatar, title, subtitle, and optional action elements.
Readme
User
Purpose
User profile display component showing avatar, title, subtitle, and optional action elements.
Installation
# pnpm (recommended)
pnpm add @hautechai/webui.user
# npm
npm install @hautechai/webui.user
# yarn
yarn add @hautechai/webui.userParameters
| Parameter | Type | Description | | --------- | --------------- | ----------------------------------------------------------------- | | avatar | string | Optional URL for the user's profile image | | title | string | Optional primary text typically showing the user's name | | subtitle | string | Optional secondary text for additional user information | | actions | React.ReactNode | Optional action buttons or elements displayed alongside user info |
Usage Example
<User avatar="/path/to/avatar.jpg" title="John Doe" subtitle="Software Engineer" actions={<Button label="Edit" />} />