Skip to content

React button component. React 3D button is a progress, social and share enabled, animated at 60fps, light weight, performant, production ready react UI button component. πŸ–₯️ πŸ“±

Notifications You must be signed in to change notification settings

boranfurkan/react-3d-button-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

React 3D Button - Demo & Documentation

This is the official demo and documentation website for react-3d-button - a beautiful 3D button component with toggle mode for React and Next.js.

πŸš€ Live Demo

View Live Demo β†’

Or run locally: http://localhost:3000

πŸ“¦ What's Inside

  • Interactive Examples: Try all button variants, sizes, and states
  • Toggle Mode Showcase: Interactive toggle/switch examples with controlled and uncontrolled modes
  • Theme Showcase: Preview all 5 pre-built themes (Ocean, Sunset, Forest, Pirate, Neon)
  • Custom Theme Builder: Live color picker to create your own theme
  • Code Examples: Copy-paste ready code snippets with syntax highlighting
  • Feature Documentation: Complete API reference and usage guides

πŸ› οΈ Built With

  • Next.js 15 - React framework with App Router
  • React 19 - UI library
  • TypeScript - Type safety
  • Tailwind CSS 4 - Styling
  • react-3d-button - The button component library
  • react-syntax-highlighter - Code syntax highlighting
  • lucide-react - Beautiful icons

πŸƒβ€β™‚οΈ Running Locally

# Install dependencies
npm install

# Start development server
npm run dev

# Open http://localhost:3000

πŸ“ Project Structure

react-3d-button-demo/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ page.tsx          # Home page with examples
β”‚   β”œβ”€β”€ toggle/
β”‚   β”‚   └── page.tsx      # Toggle mode examples and demos
β”‚   β”œβ”€β”€ themes/
β”‚   β”‚   └── page.tsx      # Theme showcase and customization
β”‚   β”œβ”€β”€ layout.tsx        # Root layout with SEO metadata
β”‚   β”œβ”€β”€ sitemap.ts        # Dynamic sitemap generation
β”‚   β”œβ”€β”€ robots.ts         # SEO robots configuration
β”‚   └── globals.css       # Global styles
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ CodeBlock.tsx     # Syntax highlighted code blocks
β”‚   β”œβ”€β”€ FeatureCard.tsx   # Feature display cards
β”‚   └── FAQSection.tsx    # FAQ with structured data
└── public/               # Static assets

🎨 Features

Interactive Examples

  • All 9 button variants (primary, secondary, tertiary, success, error, warning, info, anchor, danger)
  • 3 sizes (small, medium, large)
  • Ripple effects, active states, disabled states
  • Counter examples
  • Toggle Mode: Comprehensive toggle/switch examples with state management demos

Toggle Mode Features

  • Controlled and uncontrolled toggle modes
  • Settings panel examples (notifications, dark mode, wifi)
  • All button variants as toggles
  • Icon integration with Lucide React
  • Smooth animations without flash on mount

Theme System

  • 5 pre-built themes ready to use
  • Live theme switcher to preview all themes
  • Interactive color picker for custom themes
  • Real-time CSS variable override demonstration

Code Examples

  • Syntax highlighted code blocks
  • One-click copy functionality
  • Examples for all use cases
  • Both CSS and inline style approaches

πŸ”— Links

πŸ“ License

MIT - See LICENSE

πŸ‘¨β€πŸ’» Author

Furkan Boran

πŸ™ Credits

Inspired by react-awesome-button by Rafael Caferati.


Built with Next.js 15 and ❀️🀍

About

React button component. React 3D button is a progress, social and share enabled, animated at 60fps, light weight, performant, production ready react UI button component. πŸ–₯️ πŸ“±

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages