Skip to content

React 3D Button v1.0.3

Choose a tag to compare

@boranfurkan boranfurkan released this 02 Dec 18:48
· 8 commits to main since this release

πŸŽ‰ React 3D Button v1.0.3

A beautiful, customizable 3D button component for React with Next.js support, multiple themes, and easy CSS variable customization.

οΏ½οΏ½ Live Demo & Documentation β†’

✨ What's New in v1.0.3

🎨 Enhanced Theme System

  • Scoped theme support - Apply different themes to different sections of your app
  • All 5 pre-built themes now properly scoped with class names (.theme-ocean, .theme-sunset, etc.)
  • Fixed theme CSS specificity issues for better customization

πŸ“š Documentation Improvements

  • Comprehensive theme usage guide with scoped examples
  • New troubleshooting section for common issues
  • Detailed CSS variables reference with practical examples
  • Added use cases and real-world application scenarios
  • Interactive theme customizer on demo site

πŸ”§ Package Updates

  • Updated homepage to point to live demo site
  • Better NPM package discoverability

πŸ“¦ Installation

npm install react-3d-button@1.0.3
# or
yarn add react-3d-button@1.0.3
# or
pnpm add react-3d-button@1.0.3

πŸš€ Quick Start

import { Button3D } from 'react-3d-button';
import 'react-3d-button/styles';
import 'react-3d-button/themes/ocean.css'; // Optional theme

function App() {
  return (
    <Button3D type="primary" ripple onPress={() => console.log('Pressed!')}>
      Click Me!
    </Button3D>
  );
}

🎨 Features

  • βœ… 9 Button Variants - Primary, Secondary, Tertiary, Success, Error, Warning, Info, Anchor, Danger
  • βœ… 5 Pre-built Themes - Ocean, Sunset, Forest, Pirate, Neon
  • βœ… Next.js 13+ Compatible - Works seamlessly with App Router
  • βœ… Mobile Optimized - Enhanced touch support
  • βœ… TypeScript Support - Full type definitions
  • βœ… Zero Dependencies - ~24KB package size
  • βœ… Customizable - Easy CSS variable overrides

πŸ“ Full Changelog

Added

  • Scoped theme class support for applying themes to specific sections
  • Troubleshooting section in documentation
  • Detailed CSS variables reference with examples
  • Use cases section
  • Interactive color customizer on demo site

Changed

  • Theme CSS files now use scoped class names (.theme-{name})
  • Updated package homepage to demo site
  • Enhanced README with better examples and documentation

Fixed

  • Theme override specificity issues
  • CSS cascade conflicts when multiple themes are imported

πŸ”— Links

πŸ™ Credits

Built on top of react-awesome-button by @rcaferati.


Full Changelog: v1.0.2...v1.0.3