Layered Button

A layered button with a radial expand effect and smooth sliding hover label animation.

Installation

npx shadcn@latest add https://scrollxui.dev/registry/layered-button.json 

Usage

import { LayeredButton } from "@/components/ui/layered-button";
<LayeredButton variant="default">
    Default
  </LayeredButton>

Examples


Default


Outline


Icon


Size


Custom

API Reference

Layered Button

A layered button with a radial expand effect and smooth sliding hover label animation.

Props

PropertyTypeDefaultDescription
variantstringdefault
Button style.
sizestringdefault
Button size.
borderWidthnumber3
Inner border width.
asChildboolean
Use Radix Slot.
childrennode
Content inside button.
classNamestring
Custom classes.
...propsbutton props
All native button attributes.

Built withby Ahdeetai.