JSFiddle - React, Tailwind, and code Playground
Хвостик у блока
HTML
<div class="block">
<h2>Title</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Suscipit ad excepturi enim, delectus consequuntur commodi iste. Iure consequuntur, et saepe.</p>
</div>
CSS
@import url('https://fonts.googleapis.com/css2?family=Neucha&display=swap');
* {
box-sizing: inherit;
}
html {
box-sizing: border-box;
}
body {
padding: 50px;
margin: 0;
font-family: 'Neucha', cursive;
}
.block {
position: relative;
width: 300px;
padding: 30px;
border-radius: 10px 10px 10px 0;
background: #4d5156;
color: #bbfbbc;
}
.block::after {
content: "";
position: absolute;
bottom: 0;
right: 100%;
display: block;
width: 30px;
height: 30px;
background: radial-gradient(60px at top left, transparent 49%, #4d5156 51%) no-repeat right bottom;
}
h2 {
margin-top: 0;
font-size: 36px;
font-weight: 400;
text-transform: uppercase;
}