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.
Or run locally: http://localhost:3000
- 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
- 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
# Install dependencies
npm install
# Start development server
npm run dev
# Open http://localhost:3000react-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
- 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
- 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
- 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
- Syntax highlighted code blocks
- One-click copy functionality
- Examples for all use cases
- Both CSS and inline style approaches
- NPM Package: https://www.npmjs.com/package/react-3d-button
- GitHub Repository: https://github.com/boranfurkan/react-3d-button
MIT - See LICENSE
Furkan Boran
- GitHub: @boranfurkan
- NPM: react-3d-button
Inspired by react-awesome-button by Rafael Caferati.
Built with Next.js 15 and β€οΈπ€