generated from timelessco/react-components-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(comps): ♻️ update syntax for v2 ariakit (#297)
- Loading branch information
1 parent
8515ad4
commit bfabf13
Showing
284 changed files
with
7,594 additions
and
8,926 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { AvatarUIState } from "../avatar"; | ||
|
||
export function useAvatarGroupUIState( | ||
props: AvatarGroupUIStateProps, | ||
): AvatarGroupUIState { | ||
const { | ||
circular = true, | ||
size = "xl", | ||
showRing = true, | ||
ringColor = "ring-white", | ||
max, | ||
} = props; | ||
|
||
return { | ||
size, | ||
circular, | ||
showRing, | ||
ringColor, | ||
max, | ||
}; | ||
} | ||
|
||
export type AvatarGroupUIState = Pick< | ||
AvatarUIState, | ||
"size" | "circular" | "showRing" | "ringColor" | "max" | ||
>; | ||
|
||
export type AvatarGroupUIStateProps = Partial< | ||
Pick< | ||
AvatarGroupUIState, | ||
"size" | "circular" | "showRing" | "ringColor" | "max" | ||
> | ||
>; |
Oops, something went wrong.
bfabf13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
renderlesskit-react-tailwind – ./
renderlesskit-react-tailwind-timelessco.vercel.app
renderlesskit-react-tailwind-git-main-timelessco.vercel.app
renderlesskit-react-tailwind.vercel.app