Skip to content

Commit

Permalink
add: avatar group template structure
Browse files Browse the repository at this point in the history
  • Loading branch information
kotAPI committed Aug 31, 2024
1 parent d7eaa36 commit 69b799a
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/components/ui/AvatarGroup/AvatarGroup.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const COMPONENT_NAME = 'AvatarGroup';

import React from 'react';


import AvatarGroupRoot from './shards/AvatarGroupRoot';

// contexts

// export type AvatarProps = {
// children?: React.ReactNode,
// customRootClass?: string,
// fallback?: string,
// className?: string,
// src?: string,
// alt?: string,
// props?: Record<string, any>[]
// }


const AvatarGroup = ({avatars=[], size, customRootClass='', className}) => {
return <AvatarGroupRoot>

</AvatarGroupRoot>;
};


AvatarGroup.displayName = COMPONENT_NAME;

export default AvatarGroup;
5 changes: 5 additions & 0 deletions src/components/ui/AvatarGroup/contexts/AvatarGroupContext.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {createContext} from 'react';

const AvatarGroupContext = createContext({});

export default AvatarGroupContext;
19 changes: 19 additions & 0 deletions src/components/ui/AvatarGroup/shards/AvatarGroupRoot.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

import React from 'react';

import AvatarGroupContext from './contexts/AvatarGroupContext';


const AvatarGroupRoot = () => {
return (
<div>
<AvatarGroupContext.Provider value={{}}>
<AvatarGroupRoot >
</AvatarGroupRoot>
</AvatarGroupContext.Provider>

</div>
);
};

export default AvatarGroupRoot;

0 comments on commit 69b799a

Please sign in to comment.