This component is inspired by how Arc makes you choose its app icon. 🖥 Watch the demo video to see the component live in action!
- React
- Tailwind CSS
- Typescript
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}
/>
<ADFSchelfSelector
...
classNameSides?: string;
classNameIndicator?: string;
/>
classNameSides = "via-white to-white",
classNameIndicator = "bg-blue-500 shadow-blue-500",
⚡️ Website