rounded-e: Tailwind CSS Border Radius class

The rounded-e class in Tailwind CSS applies the default border-radius to the end side of an element — which refers to the right side in left-to-right (LTR) layouts and the left side in right-to-left (RTL) layouts.


rounded-e

The rounded-e class in Tailwind CSS applies the default border-radius to the end side of an element — which refers to the right side in left-to-right (LTR) layouts and the left side in right-to-left (RTL) layouts. This includes both the top-end and bottom-end corners, making it useful for directional UI styling.

Syntax

...

Example Code

html
<div class="flex font-semibold">
<button class="bg-gray-300 px-4 py-2 rounded-s">Back</button>
<button class="bg-indigo-600 text-white px-4 py-2 rounded-e">Next</button>
</div>

Preview

In the example above, rounded-e gives the "Next" button rounded corners on the right side (or end side), while rounded-s rounds the start side of the "Back" button — perfect for grouped buttons or inputs.

How to Use

Add the rounded-e class directly to your HTML element:

html
<div class="rounded-e">
<!-- Your content here -->
</div>

Responsive Usage

Use Tailwind's responsive prefixes to apply rounded-e at specific breakpoints:

html
<div class="sm:rounded-e md:rounded-e lg:rounded-e">
Responsive element
</div>
  • sm:rounded-e — applies from 640px and up
  • md:rounded-e — applies from 768px and up
  • lg:rounded-e — applies from 1024px and up

Customization

You can extend or override this utility in your tailwind.config.js. See the Tailwind CSS documentation for details on customizing your theme.

Windframe is an AI visual editor for rapidly building stunning web UIs & websites

Start building stunning web UIs & websites!

Build from scratch or select prebuilt tailwind templates