@pagedotapp/page-avatar
v0.0.0-alpha.14
Published
PageAvatar - A reusable React component
Readme
@pagedotapp/page-avatar
An avatar component with image support and fallback
Installation
npm install @pagedotapp/page-avatarUsage
import { PageAvatar } from "@pagedotapp/page-avatar"
function App() {
return <PageAvatar src="/avatar.jpg" alt="User" fallback="JD" />
}Props
See the TypeScript definitions for detailed prop types.
Styling
This component uses CSS modules for styling. The styles are injected automatically when you use the component.
Dependencies
Peer Dependencies
- React >=16.8.0
- React DOM >=16.8.0
Required Dependencies
- @radix-ui/react-avatar: ^1.1.10
License
MIT © PageStudio
