Tailwind border gradient

<div
style={{
border: "2px solid",
borderImageSource:
"linear-gradient(94.78deg, #A861FF 5.14%, #55CCFF 93.33%)",
borderImageSlice: 1,
borderRadius: "9999px",
}}
className="px-3 py-[6px] bg-white rounded-full w-fit self-center"
>
<p className="inline-block text-transparent bg-cta-gradient bg-clip-text">
Laculis gravida mi scelerisque tincidunt
</p>
</div>
<div
style={{
border: "2px solid",
borderImageSource:
"linear-gradient(94.78deg, #A861FF 5.14%, #55CCFF 93.33%)",
borderImageSlice: 1,
borderRadius: "9999px",
}}
className="px-3 py-[6px] bg-white rounded-full w-fit self-center"
>
<p className="inline-block text-transparent bg-cta-gradient bg-clip-text">
Laculis gravida mi scelerisque tincidunt
</p>
</div>
How to apply border gradient, with the current code the linear gradient border is not curving with the rounded-full class
1 Reply
Mannix
Mannix4w ago
border-radius doesn't work with border-image properties

Did you find this page helpful?