@shcnwc/shadcn-avatar-web-component
v1.3.2
Published
An image element with a fallback for representing the user.
Downloads
20
Readme
Avatar
An image element with a fallback for representing the user.
Installation
npm install @shcnwc/shadcn-avatar-web-componentUsage
<script type="module">
import "@shcnwc/shadcn-avatar-web-component";
</script>
<avatar-root>
<avatar-image src="https://github-com/shadcn-png" alt="@shadcn" />
<avatar-fallback>cn</avatar-fallback>
</avatar-root>Links
Contributing
Contributions are welcome! Please open an issue or pull request on GitHub.
License
This project is licensed under the MIT License.
