Overview
Extrude Button is a highly customizable 3D button component that brings depth and interactivity to your user interface. It supports various animations, materials, and styling options.
Usage
import { ExtrudeButton } from ' extrude-ui ' ;
Examples:
Props
Core Props
Prop Type Default Description textstring— The text content of the button onClick() => void— Function called when button is clicked disabledbooleanfalseWhether the button is disabled
Styling Props
Prop Type Default Description colorstring"#ffffff"Primary color of the button size'small' | 'medium' | 'large' | 'xlarge'"medium"Size of the button shape'rounded' | 'square' | 'pill'"rounded"Shape of the button fontstring— Custom font family textColorstring"#000000"Color of the button text opacitynumber1Overall opacity of the button
3D Properties
Prop Type Default Description depthnumber1Depth of the button
Material Properties
Prop Type Default Description metalnessnumber0Metallic material effect roughnessnumber0.5Surface roughness
Animation Properties
Prop Type Default Description animation'spin' | 'flip' | 'rock' | 'none'"spin"onClick animation
Shadow Properties
Prop Type Default Description shadowColorstring"#000000"Color of the shadow shadowOpacitynumber0.2Opacity of the shadow (0-1)
Gradient Properties
Prop Type Description gradient{ from: string; to: string; angle?: number }Configure a gradient background
Loading State
Prop Type Default Description fallbackReact.ReactNode— Overrides the default loading animation. loadingAnimation'spinner' | 'pulse' | 'dots' | 'none'"spinner"Type of loading animation loadingColorstring— Color of the loading indicator
Code From Examples: