Display UI

Button Ring

A circular, outlined button style often used for icon buttons, secondary actions, or floating UI controls.

Loading...

Installation

npx shadcn@latest add https://display-ui.vercel.app/r/ButtonRing

Usage

import { ButtonRing } from "@/components/display-ui/ButtonRing"
<Button>Button</Button>

API

Button Props

For ButtonRing Component

AttributeTypeDescriptionDefault
variant"solid" | "primary" | "success" | "danger"Controls the visual style and color scheme of the button."solid"
size"sm" | "md" | "lg"Controls the size and padding of the button."md"
radius"sm" | "md" | "lg" | "xl" | "full"Controls the border radius of the button."md"
RingOffnumberDuration in milliseconds after which the focus ring is removed automatically.5000
classNamestringAdditional CSS classes to customize the button styling.-

Examples

Default

Solid

Success

Danger

Credits

This component is inspired by Rehman Kalawant Design Shared On Github.

On this page