Rounded button with a radial fill on hover—and inverted label.
npx shadcn@latest add @iconiq/radial-button"use client";
import { RadialButton } from "@/components/ui/radial-button";
export function RadialButtonPreview() {
return <RadialButton>Radial Button</RadialButton>;
}childrenButton label or custom content rendered above the animated fill layer.
Type React.ReactNode
typeNative button type. Defaults to button so the control does not submit a form unless you opt in.
Type "button" | "submit" | "reset"·Default button
loadingSets aria-busy and disables interaction while a form or async action is in progress.
Type boolean·Default false
disabledNative disabled state. Also suppresses fill, press, and ripple-like feedback.
Type boolean·Default false
classNameOptional class names merged onto the root button element.
Type string
onClickNative click handler forwarded to the underlying button.
Type React.MouseEventHandler<HTMLButtonElement>
nameForm field name submitted with the parent form.
Type string
valueOptional submitted value when type is submit.
Type string
formAssociates the button with a form element by id.
Type string
Install the exact registry entry shown on the right when you want the component file and its declared runtime dependencies together.
Dependencies: motion.
Contact
Additionally, if you find any bug or issue, feel free to raise an issue.