Skip to content

This component is inspired by how Arc makes you choose its app icon.

Notifications You must be signed in to change notification settings

adfdev/shelf-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Shelf selector (Inspired Arc icon selector)

This component is inspired by how Arc makes you choose its app icon. 🖥 Watch the demo video to see the component live in action!

IMAGE ALT TEXT HERE

⚡️ TECHNOLOGIES

  • React
  • Tailwind CSS
  • Typescript

⚙️ HOW IT WORKS

const items = [
{
  src: `/images/arc-icon/1.png`,
},
{
  src: `/images/arc-icon/2.png`,
},
...
]
<ADFSchelfSelector
  className="w-full max-w-lg"
  selected={selectedIndex}
  onSelect={(index) => setSelectedIndex(index)}
  items={items}
/>

Change color indicator or sides fade color with:

<ADFSchelfSelector
   ...
  classNameSides?: string;
  classNameIndicator?: string;
/>

Replace this following default classes:

classNameSides = "via-white to-white",
classNameIndicator = "bg-blue-500 shadow-blue-500",

Links

👉 Get Shelf selector

👉 GumRoad @adfdev

⚡️ Website

About

This component is inspired by how Arc makes you choose its app icon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published