Skip to content

Instantly share code, notes, and snippets.

View codewithleader's full-sized avatar
💭
I love programming 👨‍💻💙

Elis Antonio Perez codewithleader

💭
I love programming 👨‍💻💙
View GitHub Profile
@codigoconjuan
codigoconjuan / DevTreeInput.tsx
Last active February 27, 2025 19:35
Gist Switch para DevTree
<Switch
checked={item.enabled}
onChange={() => {}}
className={classNames(
item.enabled ? 'bg-blue-500' : 'bg-gray-200',
'relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2'
)}
>
<span
aria-hidden="true"