Resize Handles
A copy-paste cursors component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
CursorsHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-cur2-resize-handles" aria-hidden="true">
<span class="nuda-cur2-resize-handles__box">Resizable</span>
<span class="nuda-cur2-resize-handles__handle nuda-cur2-resize-handles__handle--nw"></span>
<span class="nuda-cur2-resize-handles__handle nuda-cur2-resize-handles__handle--ne"></span>
<span class="nuda-cur2-resize-handles__handle nuda-cur2-resize-handles__handle--sw"></span>
<span class="nuda-cur2-resize-handles__handle nuda-cur2-resize-handles__handle--se"></span>
</div>CSS
.nuda-cur2-resize-handles {
position: relative;
width: 140px;
height: 90px;
margin: 15px auto;
}
.nuda-cur2-resize-handles__box {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
border: 1px dashed rgba(228,255,84,.4);
border-radius: 8px;
background: rgba(228,255,84,.04);
color: #a0a0a8;
font-size: 11px;
transition: box-shadow .2s ease;
}
.nuda-cur2-resize-handles:hover .nuda-cur2-resize-handles__box {
box-shadow: 0 0 0 3px rgba(228,255,84,.08);
}
.nuda-cur2-resize-handles__handle {
position: absolute;
width: 10px;
height: 10px;
background: #e4ff54;
border-radius: 2px;
opacity: .85;
transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.nuda-cur2-resize-handles__handle--nw {
top: -5px;
left: -5px;
cursor: nwse-resize;
}
.nuda-cur2-resize-handles__handle--ne {
top: -5px;
right: -5px;
cursor: nesw-resize;
}
.nuda-cur2-resize-handles__handle--sw {
bottom: -5px;
left: -5px;
cursor: nesw-resize;
}
.nuda-cur2-resize-handles__handle--se {
bottom: -5px;
right: -5px;
cursor: nwse-resize;
}
.nuda-cur2-resize-handles__handle:hover {
transform: scale(1.35);
}
@media (prefers-reduced-motion:reduce) {
.nuda-cur2-resize-handles__handle,.nuda-cur2-resize-handles__box {
transition: none;
}
}
How to use Resize Handles
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.