Avatar
Displays a user profile image or fallback initials.
Preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | — | Image URL |
alt | string | — | Alt text |
fallback | string | — | Fallback initials |
size | string | 'default' | sm, default, lg |
Usage
const { Avatar } = window.ColorSnap;
ReactDOM.createRoot(document.getElementById('root')).render(
React.createElement(Avatar, { fallback: 'CS' })
);