I revised the answer that I posted for editing.
It's hard to find the clip-path among tailwind classes
I tested it once with pure-css.
It won't be the perfect answer, but I hope you're close to solving the problem...!
globals.css:
...
/* bg-gradient-to-br from-[#70d6ff] via-[#ff70a6] to-[#e9ff70] */
button.custom-clip {
clip-path: xywh(0 0 100% 100% round 0.25rem);
background: white;
}
button.custom-clip:after {
content: '';
position: absolute;
inset: 0;
z-index: -1;
background: linear-gradient(to bottom right, #70d6ff, #ff70a6, #e9ff70);
border: 1px solid white;
}
jadwalRewrite.tsx:
return (
<div className="flex mt-10 flex-col items-center">
<div className="relative">
<div className="">
<div className="p-4 font-semibold grid grid-cols-3 items-center">
<button className="custom-clip rounded border-none" onClick={() => {setView(10);}}>
<span className="block w-full h-full border p-2 rounded">Kelas 10</span>
</button>
<button className="custom-clip rounded ml-2 border-none" onClick={() => {setView(11);}}>
<span className="block w-full h-full border p-2 rounded">Kelas 11</span>
</button>
<button className="custom-clip rounded ml-2 border-none" onClick={() => {setView(12);}}>
<span className="block w-full h-full border p-2 rounded">Kelas 12</span>
</button>
<div className="grid grid-cols-2 col-span-3 space-x-2 mt-2">
<button className="custom-clip rounded border-none" onClick={() => {setDateYesterday();}}>
<span className="block w-full h-full border p-2 rounded">Kemarin</span>
</button>
<button className="custom-clip rounded border-none" onClick={() => {setDateTommorow();}}>
<span className="block w-full h-full border p-2 rounded">Besok</span>
</button>
</div>
<button className="custom-clip rounded col-span-3 mt-2 border-none" onClick={handleCopy}>
<span className="block w-full h-full border p-2 rounded">{copyMessage}</span>
</button>
</div>
</div>
</div>
<Display/>
</div>
)