-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from holaplex/anshul/minor-fixes
Popover component, placeholder in avatar, minor updates in form
- Loading branch information
Showing
16 changed files
with
1,311 additions
and
9,917 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,87 @@ | ||
import { Avatar, AvatarSize } from '@holaplex/ui-library-react'; | ||
import { Avatar, AvatarSize, Icon } from '@holaplex/ui-library-react'; | ||
|
||
export default function App() { | ||
return ( | ||
<div className='flex flex-col items-center justify-center p-4 gap-4'> | ||
<span className='font-bold underline'>Avatar</span> | ||
Tiny | ||
<Avatar size={AvatarSize.Tiny} /> | ||
<div className='flex items-center gap-4'> | ||
<Avatar | ||
size={AvatarSize.Tiny} | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar | ||
size={AvatarSize.Tiny} | ||
circle | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar size={AvatarSize.Tiny} handle='MyAvatar' /> | ||
</div> | ||
Small | ||
<Avatar size={AvatarSize.Small} /> | ||
<div className='flex items-center gap-4'> | ||
<Avatar | ||
size={AvatarSize.Small} | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar | ||
size={AvatarSize.Small} | ||
circle | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar size={AvatarSize.Small} handle='MyAvatar' /> | ||
</div> | ||
Standard | ||
<Avatar size={AvatarSize.Standard} /> | ||
<div className='flex items-center gap-4'> | ||
<Avatar | ||
size={AvatarSize.Standard} | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar | ||
size={AvatarSize.Standard} | ||
circle | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar size={AvatarSize.Standard} handle='MyAvatar' /> | ||
</div> | ||
Large | ||
<Avatar size={AvatarSize.Large} /> | ||
<div className='flex items-center gap-4'> | ||
<Avatar | ||
size={AvatarSize.Large} | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar | ||
size={AvatarSize.Large} | ||
circle | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar size={AvatarSize.Large} handle='MyAvatar' /> | ||
</div> | ||
Jumbo | ||
<Avatar size={AvatarSize.Jumbo} /> | ||
<div className='flex items-center gap-4'> | ||
<Avatar | ||
size={AvatarSize.Jumbo} | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar | ||
size={AvatarSize.Jumbo} | ||
circle | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar size={AvatarSize.Jumbo} handle='MyAvatar' /> | ||
</div> | ||
Gigantic | ||
<Avatar size={AvatarSize.Gigantic} /> | ||
<div className='flex items-center gap-4'> | ||
<Avatar | ||
size={AvatarSize.Gigantic} | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar | ||
size={AvatarSize.Gigantic} | ||
circle | ||
src='https://img.freepik.com/free-vector/hand-drawn-nft-style-ape-illustration_23-2149611030.jpg?w=2000' | ||
/> | ||
<Avatar size={AvatarSize.Gigantic} handle='MyAvatar' /> | ||
</div> | ||
</div> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,18 +70,20 @@ export default function App() { | |
return ( | ||
<div className='w-[400px] mx-auto flex flex-col gap-4 justify-center items-center p-4'> | ||
<Form> | ||
<Form.Label name='Email' /> | ||
<Form.Input placeholder='e.g. [email protected]' /> | ||
<Form.Label name='Email'> | ||
<Form.Input placeholder='e.g. [email protected]' /> | ||
</Form.Label> | ||
<Form.Label | ||
name='Password' | ||
asideComponent={<div className='text-xs'>Forgot Password?</div>} | ||
className='mt-5' | ||
/> | ||
<Form.Password | ||
placeholder='Enter your password' | ||
showPasswordIcon={<ShowPasswordIcon />} | ||
hidePasswordIcon={<HidePasswordIcon />} | ||
/> | ||
> | ||
<Form.Password | ||
placeholder='Enter your password' | ||
showPasswordIcon={<ShowPasswordIcon />} | ||
hidePasswordIcon={<HidePasswordIcon />} | ||
/> | ||
</Form.Label> | ||
</Form> | ||
</div> | ||
); | ||
|
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,23 @@ | ||
import { Icon, PopoverBox } from '@holaplex/ui-library-react'; | ||
|
||
export default function App() { | ||
return ( | ||
<div className='flex flex-col gap-4 justify-center items-center p-4'> | ||
<PopoverBox | ||
triggerButton={ | ||
<span className='font-bold underline cursor-pointer'> | ||
Show Popover | ||
</span> | ||
} | ||
elements={[ | ||
<div key='1' className='flex gap-2'> | ||
<Icon.Discord /> Open Discord | ||
</div>, | ||
<div key='2' className='flex gap-2'> | ||
<Icon.Twitter /> Open Twitter | ||
</div> | ||
]} | ||
/> | ||
</div> | ||
); | ||
} |
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
Oops, something went wrong.