VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-ring-offset-width/

⇱ Tailwind CSS Ring Offset Width - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Ring Offset Width

Last Updated : 23 Jul, 2025

This class accepts more than one value in tailwind CSS. All the properties are covered in class form. This class is used to set the ring-offset width of buttons.

Ring Offset Width classes:

  • ring-offset-0: This class is used to deny the ring-offset.
  • ring-offset-1: This class is used to set the smallest ring-offset.
  • ring-offset-2: This class is used to set the medium ring-offset.
  • ring-offset-4: This class is used to set the large ring-offset.
  • ring-offset-8: This class is used to set the largest ring-offset.

Note: Currently the browsers are not supported by Tailwind CSS Ring Width, so for the output, I share the link of the output. (Tailwind CSS Playground)

Syntax:

<button class="ring-offset-{width}">...</button >

Example:

Output:

 

👁 Image
ring-offset width
Comment