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 May 29, 2025 20:17
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"