Created
September 29, 2024 00:28
-
-
Save reedjones/6a1b9f7551ece97144965500a6b34eea to your computer and use it in GitHub Desktop.
v0-download-button.html
This file contains hidden or 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
<button class="focus-visible:ring-offset-background inline-flex shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap text-nowrap border font-medium outline-none ring-blue-600 transition-all focus-visible:ring-2 focus-visible:ring-offset-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:ring-0 has-[:focus-visible]:ring-2 aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:ring-0 [&>svg]:pointer-events-none [&>svg]:size-4 [&_svg]:shrink-0 hover:bg-alpha-200 focus:bg-alpha-200 focus-visible:bg-alpha-200 border-transparent bg-transparent hover:border-transparent focus:border-transparent focus-visible:border-transparent disabled:border-transparent disabled:bg-transparent disabled:text-gray-400 aria-disabled:border-transparent aria-disabled:bg-transparent aria-disabled:text-gray-400 px-2 text-xs has-[>kbd]:gap-2 has-[>svg]:px-1 has-[>kbd]:pr-1 size-[22px] rounded-md text-gray-500" aria-label="Download" data-state="closed"><span aria-hidden="true"><svg class="download-icon overflow-visible" fill="none" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><style>.download-icon { | |
cursor: pointer; | |
transform-origin: center; | |
} | |
.download-icon .arrow-part { | |
transition: transform 0.35s cubic-bezier(0.35, 0.2, 0.14, 0.95); | |
transform-origin: center; | |
} | |
button:has(.download-icon):hover .download-icon .arrow-part, button:has(.download-icon):focus-visible .download-icon .arrow-part { | |
transform: translateY(-1.5px); | |
} | |
</style><g class="arrow-part"><path clip-rule="evenodd" d="M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75Z" fill="currentColor" fill-rule="evenodd"></path></g><g class="rectangle-part"><path clip-rule="evenodd" d="M13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z" fill="currentColor" fill-rule="evenodd"></path></g></svg></span></button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment