Skip to content

Navigation Menu

Sign in
Sign up

feat: add stacked-avatar component with tooltip - #525

Open
Raju-kadel-27 wants to merge 3 commits into
main from
feat/stacked-avatar
Open

feat: add stacked-avatar component with tooltip #525
Raju-kadel-27 wants to merge 3 commits into
main from
feat/stacked-avatar

Conversation

@Raju-kadel-27

@Raju-kadel-27 Raju-kadel-27 commented Sep 27, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

This might be useful while rendering multiple recipients with avatars in react-table for investor updates or maybe displaying recipients during e-signing process.

Example usage :

import { AvatarStack } from "@/components/ui/avatar-stack";
const MyComponent = () => {
 const avatars = [
 {
 name: "John Doe",
 image: "https://avatars.githubusercontent.com/u/54895192?v=4",
 },
 {
 name: "Jane Smith",
 image: "https://avatars.githubusercontent.com/u/54895192?v=4",
 },
 {
 name: "Alice Johnson",
 image: "https://avatars.githubusercontent.com/u/54895192?v=4",
 },
 {
 name: "Den Brown",
 image: "https://avatars.githubusercontent.com/u/54895192?v=4",
 },
 {
 name: "Jharna Brown",
 image: "https://avatars.githubusercontent.com/u/54895192?v=4",
 },
 {
 name: "Robin Brown",
 image: "https://avatars.githubusercontent.com/u/54895192?v=4",
 },
 {
 name: "Aakash Brown",
 image: "https://avatars.githubusercontent.com/u/54895192?v=4",
 },
 {
 name: "Bibek Brown",
 image: "https://avatars.githubusercontent.com/u/54895192?v=4",
 },
];
 return (
 <div>
 <h2>Avatar Stack Example</h2>
 <AvatarStack 
 avatars={avatars} 
 maxAvatarsAmount={3} 
 orientation="horizontal" 
 spacing="md" 
 />
 </div>
 );
};
export default MyComponent;

Screenshot from 2024年09月28日 12-35-00

github-actions Bot commented Sep 27, 2024
edited
Loading

Copy link
Copy Markdown

Thank you for following the naming conventions for pull request titles! 🙏

Raju-kadel-27 marked this pull request as draft September 27, 2024 15:53
Raju-kadel-27 marked this pull request as ready for review September 28, 2024 07:01
@Raju-kadel-27 Raju-kadel-27 changed the title (削除) feat: add stacked-avatar component (削除ここまで) (追記) feat: add stacked-avatar component with tooltip (追記ここまで) Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /